How to use the webservice webservice used herein in JEECG framework is in fact no matter what language usage development webservice same c # development
java springmvc maven integration environment how to use webservice client webservice client objects belong to read this article
As used herein, the environment JEECG3.7.5 jdk1.7
Repairer will not be repeated below gives the author the development of reference articles connected load
https://blog.csdn.net/qq_38625056/article/details/82996010
1. Open the spring in the annotation, as
2. Configure web.xml file
3. Configure cxf-servlet.xml file
5. Configure maven dependent [Note maven has not allowed the space node after node delete leading spaces pit operation with a tab of everyone is important to note here (please ignore the great God rookie please watch your step)]
Here I say more novice may not know where to increase maven configure it (I also huh) Answer: Just JEECG of jeecg-framework / pom.xml
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.4.2</version>
</dependency>
6. The code calls come
JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance(); org.apache.cxf.endpoint.Client client = factory.createClient("http://127.0.0.1:8080/HellWordService.asmx?wsdl"); Object[] inputs = {"123", "123"}; Object[] result = client.invoke("GetHelloWordString", inputs);
At this point you will see the successful results of a pullback
The busier the more people actually have time to write a blog to write articles not only summarize their work, resulting study will help other coder in question worked for hope with all coder
Tucao about java eclipse maven speed will make all the c # developers collapse relative vs nuget whether you have this feeling Kazakhstan