I am trying to create a Web Service Proxy using Jdev.I am using a WSDL file located in my local system for the same. I choose all default options but the proxy is not created due to the following error -
"Error creating model from wsdl <wsdl_name> : A class/interface with the same name xyz already in use"
I found a few threads which had similar issues but the solutions didnot work for me -
1)Error creating model from wsdl (Create separate model projects for proxies , since in the existing model project I already had generated files using create WebServiceData control wizard)
2)Error when creating Web Service Proxy (there are no duplicate variables or schemas in my wsdl)
The "Validate WSDL" as well as "Validate XML" returns no errors . I am also able to Test the Web Service from Jdev.
Still the "Generate Web Service Proxy: results in error saying - "WSDL Document is invalid"
I tried this WSDL and there seems to be some validation issues with this.
Example, [<soap:binding style=""/>], this is missing the transport attribute, which is pointed out by the validate WSDL utility. Is this not throwing any validation error(s) for you in the editor?
looks like , this binding tag is getting truncated after posting here..(may be samething happened when you post the WSDL here)
I also added operation and input to this WSDL which are missing in your WSDL
set style to document
and transport to http transport
Yes Sathish , the binding tag did get truncated while posting here . The WSDL I have on Jdev has the correct binding tag as -
*<binding name="ZBAPI_SALES_DOC_FLOWSoap" type="tns:ZBAPI_SALES_DOC_FLOWSoap"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="ZBAPI_SALES_DOC_FLOW"><soap:operation style="document" soapAction="ZBAPI_SALES_DOC_FLOW.ZBAPI_SALES_DOC_FLOWRequest@production@@"/><input><soap:body use="literal"/><soap:header message="tns:ZBAPI_SALES_DOC_FLOWHeader" use="literal" part="header"/>*
*</output><fault name="AdapterExceptionFault"><soap:fault name="AdapterExceptionFault" use="literal"/></fault></operation>*
Vishal - I had the correct WSDL on Jdev hence its not showing the validation errors.