function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
FandangoFandango 

Error in creating client proxy files from a WSDL

Hi,

I'm trying to generate client proxy files from salesforce wsdl file to connect to salesforce.com.

I have JDK1.4 and Sun Java Web Services Pack configured on solaris (version 9).

When I try to create the client proxy files I get the following error:

invalid element "{http://schemas.xmlsoap.org/wsdl/}definitions" in configuration file (line 11)

I used the following command:

wscompile -gen enterprise.wsdl -f:novalidation


It seems like there is something wrong with salesforce wsdl file (enterprise.wsdl.xml) as I'm able to generate client proxy files from Googles' WSDL file to connect to google.com.


Please tell me what to do ????

...and dont recommend me to try use some other third party tools. Sun Web Services Pack 1.4 works for all my other wsdl files.


Thanks.
SuperfellSuperfell
The WSDL is valid, and {http://schemas.xmlsoap.org/wsdl/}definitions is the correct root element for a WSDL doc (see http://www.w3.org/TR/wsdl) The only thing i can think of is the comment that appears before this element is tripping it up, try removing that and giving it another go.
FandangoFandango
I'm still getting the same error even after removing the comments

Is there any option/parameter that I need to set to generate the lcient proxy files ?