I am trying to consume a remote webservice (saleforce.com related 
wsdl). The steps I took are
1) Use ant task for "wsdlTojava" and was able to create a client for 
 the wsdl (I imported my wsdl to my web-inf/wsdl folder). I use 
 xmlbeans as the databinding.
 2) Customize the generated "client stub" for the input parameters in 
 my java class.

 Is there anything additional that i need to do, before I 
 started testing this as a standalone program ?.

 I am getting this error, when I run the client stub (as a java
 application): 
 Exception in thread "main" javax.xml.ws.WebServiceException: Port 
 {urn:enterprise.soap.sforce.com}Soap not found.
        at
 org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:312)
        at
 org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:303)
        at javax.xml.ws.Service.getPort(Service.java:92)
        at
 com.sforce.soap.enterprise.SforceService.getSoap(SforceService.java:62)
        at
 com.sforce.soap.enterprise.Soap_Soap_Client.main(Soap_Soap_Client.java
 :5
 0)


Thanks
Sundar
-- 
View this message in context: 
http://cxf.547215.n5.nabble.com/consuming-a-remote-webservice-tp2256732p2256732.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to