You need to sign in to do that
Don't have an account?
Java client access salesforce custom web service with WSC
Hi,
I am in the process of developing client application using java by going through the link
http://wiki.developerforce.com/page/Introduction_to_the_Force.com_Web_Services_Connector
But ended with the error message. Please help.
Input:
D:\Sfdc Practice>java -classpath wsc-22-jdk-1.7.jar com.sforce.ws.tools.wsdlc enterprisewsdl.wsdl enterprise.jar
Output:
[WSC][wsdlc.run:312]Created temp dir: C:\Users\371278\AppData\Local\Temp\wsdlc-t
emp-5760672496630946977-dir
Exception in thread "main" com.sforce.ws.wsdl.WsdlParseException: Parse error: enterprisewsdl.wsdl (The system cannot find the file specified)
at com.sforce.ws.wsdl.WsdlFactory.create(WsdlFactory.java:61)
at com.sforce.ws.tools.wsdlc.<init>(wsdlc.java:75)
at com.sforce.ws.tools.wsdlc.run(wsdlc.java:312)
at com.sforce.ws.tools.wsdlc.main(wsdlc.java:303)
Caused by: java.io.FileNotFoundException: enterprisewsdl.wsdl (The system cannot
find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.sforce.ws.wsdl.WsdlFactory.create(WsdlFactory.java:58)
... 3 more
Thanks,
Indy
Hi Sfdcfox,
Thanks for your reply.
I placed both enterprise.xml and jar file in D:\Sfdc Practice. Do I need to place any other file apart from these two.?
Thanks,
Indy