Reputation: 955
In the beginning I have to warn that I'm not familar with web services, I want to simply generate what I need, and learn the basics of usage.
I recived .wsdl and .xsd files (stored localy). I have generated java code using Apache CXF WSDL2Java tool (I have generated a client). I also have an endpoint (as url without '?WSDL' on the end - whatever this endding means). How can I set this endpoint?
If I use:
Blachblach_Service ss = new Blachblach_Service(new URL(recived_url));
Blachblach port = ss.getBlachblachSOAP();
I get an exception. When I use soapUI to send XMLs to web services, everything works fine.
Upvotes: 2
Views: 3012
Reputation: 23415
At first you need to initialize your web service client. See my answer over here how to make this work.
?WSDL
ending means that you can see the web service WSDL file in your browser, you can access the web service through SOAP
protocol by providing it with some valid request.
If you need to create your web service client using Spring
. Here is very good example how to do this.
Upvotes: 1
Reputation: 586
Yes usually we set params like end point URL on Service class object and retrieve port from it. and from port we invoke web service methods. can you please give details of exception you are getting?
Upvotes: 0