I would like to connect to eBay API. I downloaded the WSDL from their site
I can see that the address exists:
<wsdl:service name="FindingService">
<wsdl:documentation>
<Version>1.12.0</Version>
</wsdl:documentation>
<wsdl:port name="FindingServiceSOAPPort"
binding="tns:FindingServiceSOAPBinding">
<soap12:address
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
location="https://svcs.ebay.com/services/search/FindingService/v1"/>
</wsdl:port>
</wsdl:service>
However, when I try to create a new Web Service Client project in Eclipse I get:
IWAB0399E Error in generating Java from WSDL: java.io.IOException:
Emitter failure. Cannot find endpoint address in port FindingServiceSOAPPort
in service FindingServiceLocator
What could be the problem?
2
Answers
I believe there is some issue with the URL, I see that their sandbox service is up and running at http://svcs.sandbox.ebay.com/services/search/FindingService/v1. May be you can you try creating project with sandbox and see if it works, and then contact the webservice provider for actual issue.
You can try import the project in SOAP-UI, am sure the production end point URL will fail, and the sandbox will work. Looks like there is no issue with WSDL2Java tool.
I faced the same problem while using
Axis
instead ofAxis2
forwsdl2java
generation. You would have to try it withAxis2
instead ofAxis
– earlier as well I had run into similar timeout and emitter exceptions which were to be sorted by switching toAxis2
.In the below example screenshots, I used your example
WSDL
and was able to generate the client classes, below:Axis2
up – download from hereAssociate the
Axis2
runtime to the downloaded directoryCreate a
Dynamic Web Project
in eclipseMake sure to select a lower
Dynamic Web Module version
(like: 2.5 as 3.0 causes conflicts with Axis2)Select the
Web Service Client
within the created projectEnsure to pick
Web service Runtime
as Apache Axis2Voila, you are a step away from generating your client classes!