Dear,
I'm trying to import a wsdl file into Application studio in order to Create an External web service. During the activation I receive following message error:
Message 'IExternSysService_GetToken_InputMessage' in namespace 'http://tempuri.org/' is not unique in WSDL document.
Here the wsdl file that I'm using .
<?xml version="1.0" encoding="utf-8"?><wsdl:definitions name="ExternSysService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"> <wsdl:types> <xsd:schema targetNamespace="http://tempuri.org/Imports"> <xsd:import schemaLocation="http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc?xsd=xsd0" namespace="http://tempuri.org/"/> <xsd:import schemaLocation="http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/> <xsd:import schemaLocation="http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/ExternSysWcf"/> </xsd:schema> </wsdl:types> <wsdl:portType name="IExternSysService"> <wsdl:operation name="GetToken"> <wsdl:input wsaw:Action="http://tempuri.org/IExternSysService/GetToken" message="tns:IExternSysService_GetToken_InputMessage"/> <wsdl:output wsaw:Action="http://tempuri.org/IExternSysService/GetTokenResponse" message="tns:IExternSysService_GetToken_OutputMessage"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="CustomBinding_IExternSysService" type="tns:IExternSysService"> <wsp:PolicyReference URI="#CustomBinding_IExternSysService_policy"/> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="GetToken"> <soap12:operation soapAction="http://tempuri.org/IExternSysService/GetToken" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="ExternSysService"> <wsdl:port name="CustomBinding_IExternSysService" binding="tns:CustomBinding_IExternSysService"> <soap12:address location="http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc/ExternSysWcf/ExternSysService.svc"/> <wsa10:EndpointReference> <wsa10:Address>http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc/ExternSysWcf/ExternSysService.svc</wsa10:Address> </wsa10:EndpointReference> </wsdl:port> </wsdl:service></wsdl:definitions>
Is it necessary elaborate the content of wsdl file before importing it?
Best Regards,
Daniele