MseEndpointResolver error

Topics: Technical Questions
Nov 1, 2007 at 4:04 PM
I, I installed and followed the walkthrough yesterday. I was able to import a service but when I try to browse or discover the endpoint that I configured for the other service I get an IIS error. I restarted the runtime service and i get a warning and an error:
Warning:

MseEndpointResolver: Error(s) whilst importing Contract for http://win2003eer2:8090/myService:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Error:

MseEndpointResolver: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Schema with target namespace 'http://www.myservice.mx/myservice' could not be found.
XPath to Error Source: //wsdl:definitions@targetNamespace='http://www.myservice.mx/myservice'/wsdl:portType@name='myserviceSoap' for endpoint http://win2003eer2:8090/myservice

I checked my schema catalog and the schema is right there. Do you guys know what the problem is?

Thanks

David
Developer
Nov 1, 2007 at 4:25 PM
Hi David,
Could you go to the MSE management console (Programs->Microsoft Managed Services Engine->Microsoft Managed Services Engine MMC). In the MMC, select the Endpoints folder (left hand pane), then select the endpoint http://win2003eer2:8090/myService. In the main pane, please click the WSDL tab. Please copy the WSDL and post it here so I can take a look and see what might be wrong.
Thank you,
Raul
Nov 1, 2007 at 11:00 PM
Hi Raul, this is the wsdl that is coming out.

Thanks

David

PS. Are you at the soa conference?

-------------------------------------------

<wsdl:definitions targetNamespace="http://www.sat.gob.mx/idc" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.sat.gob.mx/idc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
<wsdl:types>
</wsdl:types>
<wsdl:message name="ProcessDeclaraSATLineaSoapIn">
<wsdl:part name="ProcessDeclaraSATLineaReqPt0" element="tns:DocumentMessage">
</wsdl:part>
</wsdl:message>
<wsdl:message name="ProcessDeclaraSATLineaSoapOut">
<wsdl:part name="ProcessDeclaraSATLineaRespPt0" element="tns:ResponseMessage">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="http__win2003eer28070SATdeclarasatLineaSoap">
<wsdl:operation name="ProcessDeclaraSATLinea">
<wsdl:input message="tns:ProcessDeclaraSATLineaSoapIn">
</wsdl:input>
<wsdl:output message="tns:ProcessDeclaraSATLineaSoapOut">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="http__win2003eer28070SATdeclarasatLineaSoap12" type="tns:http__win2003eer28070SATdeclarasatLineaSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http">
</soap12:binding>
<wsdl:operation name="ProcessDeclaraSATLinea">
<wsdl:documentation name="Version Information">This operation has been versioned to support revisions. Your request will automatically be routed to the most current compatible version of this operation without explicitly specifying a version via the SOAPAction. To explicitly invoke this version of this operation, specify the soap action as ProcessDeclaraSATLinea:1.0</wsdl:documentation>
<soap12:operation soapAction="ProcessDeclaraSATLinea" style="document">
</soap12:operation>
<wsdl:input>
<soap12:body use="literal">
</soap12:body>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal">
</soap12:body>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="http__win2003eer28070SATdeclarasatLinea">
<wsdl:port name="http__win2003eer28070SATdeclarasatLineaSoap12" binding="tns:http__win2003eer28070SATdeclarasatLineaSoap12">
<soap12:address location="http://win2003eer2:8070/SAT/declarasatLinea">
</soap12:address>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Nov 1, 2007 at 11:28 PM
Can you post the WSDL of the service you are trying to import? This looks like the WSDL that the MSE is emitting. BTW, Raul left for home yesterday, but William and I are still at the conference.
Coordinator
Nov 1, 2007 at 11:58 PM
To be clear, the import feature is used to take existing services and host them in the MSE. The MSE endpoints are created with the tool to then expose the operations through. Entering an MSE endpoint into the import tool is redudnat because anything you will importing something that already exists in the MSE.
Nov 2, 2007 at 6:19 PM
I know what the MSE does, but Raul asked for the endpoint WSDL, the one at the MMC. This is the WSDL from the original service (BTS orchestration exposed as WCF)

<?xml version="1.0" encoding="utf-8" ?>
<wsdl:definitions name="BizTalkServiceInstance" targetNamespace="http://www.sat.gob.mx/idc" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.sat.gob.mx/idc" 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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
<wsdl:documentation>
<CreationInfo Created="2007-11-02 12:12:17Z" />
</wsdl:documentation>
<wsp:Policy wsu:Id="WSHttpBindingITwoWayAsyncpolicy">
<wsp:ExactlyOne>
<wsp:All>
<wsaw:UsingAddressing />
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
<wsdl:types>
<xsd:schema targetNamespace="http://www.sat.gob.mx/idc/Imports">
<xsd:import schemaLocation="http://win2003eer2.contoso.com:8080/SATOrchestrations/SATIDCOrchestrationsDeclaraSATLineaRecDeclaraSATLinea.svc?xsd=xsd2" namespace="http://www.sat.gob.mx/idc" />
<xsd:import schemaLocation="http://win2003eer2.contoso.com:8080/SATOrchestrations/SATIDCOrchestrationsDeclaraSATLineaRecDeclaraSATLinea.svc?xsd=xsd3" namespace="http://www.sat.gob.mx/idc" />
</xsd:schema>
</wsdl:types>
<wsdl:message name="SATIDCOrchestrationsDeclaraSATLineaRecDeclaraSATLineaProcessDeclaraSATLineaInputMessage">
<wsdl:part name="part" element="tns:DocumentMessage" />
</wsdl:message>
<wsdl:message name="SATIDCOrchestrationsDeclaraSATLineaRecDeclaraSATLineaProcessDeclaraSATLineaOutputMessage">
<wsdl:part name="part" element="tns:ResponseMessage" />
</wsdl:message>
<wsdl:portType name="SATIDCOrchestrationsDeclaraSATLineaRecDeclaraSATLinea">
<wsdl:documentation>service "SAT.IDC.Orchestrations.DeclaraSATLinea" port "RecDeclaraSATLinea"</wsdl:documentation>
<wsdl:operation name="ProcessDeclaraSATLinea">
<wsdl:documentation>operation "ProcessDeclaraSATLinea"</wsdl:documentation>
<wsdl:input message="tns:SATIDCOrchestrationsDeclaraSATLineaRecDeclaraSATLineaProcessDeclaraSATLineaInputMessage" />
<wsdl:output message="tns:SATIDCOrchestrationsDeclaraSATLineaRecDeclaraSATLineaProcessDeclaraSATLineaOutputMessage" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WSHttpBindingITwoWayAsync" type="tns:SATIDCOrchestrationsDeclaraSATLinea_RecDeclaraSATLinea">
<wsp:PolicyReference URI="#WSHttpBindingITwoWayAsyncpolicy" />
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="ProcessDeclaraSATLinea">
<wsdl:documentation>operation "ProcessDeclaraSATLinea"</wsdl:documentation>
<soap12:operation soapAction="ProcessDeclaraSATLinea" style="document" />
<wsdl:input>
<soap12:body use="literal" encodingStyle="http://www.w3.org/2003/05/soap-encoding" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" encodingStyle="http://www.w3.org/2003/05/soap-encoding" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="BizTalkServiceInstance">
<wsdl:port name="WSHttpBindingITwoWayAsync" binding="tns:WSHttpBindingITwoWayAsync">
<soap12:address location="http://win2003eer2.contoso.com:8080/SATOrchestrations/SATIDCOrchestrationsDeclaraSATLineaRecDeclaraSATLinea.svc" />
<wsa10:EndpointReference>
<wsa10:Address>http://win2003eer2.contoso.com:8080/SATOrchestrations/SATIDCOrchestrationsDeclaraSATLineaRecDeclaraSATLinea.svc</wsa10:Address>
</wsa10:EndpointReference>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Thanks

David

Nov 2, 2007 at 9:42 PM
David,

Gotcha... I understand where you are now. It looks like the XML types aren't being emitted, but I'm not sure why yet.