cpertuz
asked on
Duplicate WSDL from third party WSDL
I was given a WSDL from a third party. Using the wsdl tool (Visual Studio 2008 Command Prompt) I generated the Data Contract classes:
wsdl /language:CS /serverInterface wsdl_location
Now I have the "skeleton interface" of my web service. I deployed to my QA environment, but the WSDL I get from this newly created web service is quite different from the third party WSDL, example:
Original WSDL:
<wsdl:operation name="syncProduct">
<wsdl:input message="tns:syncProductRe quest" name="syncProductRequest"/ >
<wsdl:output message="tns:syncProductRe sponse" name="syncProductResponse" />
<wsdl:fault message="tns:syncProductEr ror" name="syncProductError" />
</wsdl:operation>
Regenerated WSDL:
<wsdl:operation name="syncProduct">
<wsdl:input wsaw:Action="http://tempuri.org/IeMenuWebService/syncProduct" message="tns:IeMenuWebServ ice_syncPr oduct_Inpu tMessage" />
<wsdl:output wsaw:Action="http://tempuri.org/IeMenuWebService/syncProductResponse" message="tns:IeMenuWebServ ice_syncPr oduct_Outp utMessage" />
</wsdl:operation>
Is there a process to get a WSDL similar to the original one?
wsdl /language:CS /serverInterface wsdl_location
Now I have the "skeleton interface" of my web service. I deployed to my QA environment, but the WSDL I get from this newly created web service is quite different from the third party WSDL, example:
Original WSDL:
<wsdl:operation name="syncProduct">
<wsdl:input message="tns:syncProductRe
<wsdl:output message="tns:syncProductRe
<wsdl:fault message="tns:syncProductEr
</wsdl:operation>
Regenerated WSDL:
<wsdl:operation name="syncProduct">
<wsdl:input wsaw:Action="http://tempuri.org/IeMenuWebService/syncProduct" message="tns:IeMenuWebServ
<wsdl:output wsaw:Action="http://tempuri.org/IeMenuWebService/syncProductResponse" message="tns:IeMenuWebServ
</wsdl:operation>
Is there a process to get a WSDL similar to the original one?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What are the namespaces in the 3rd party WSDL?
Web Service Contract First also known as WSCF.blue will help you.
ASKER
The tool provided in the link was very helpful. I thought that .Net would generate automatically the same WSDL provided by the third party, but it looks like you have to upload it manually.