D
Dan Diephouse
I have been developing a web service for use with the compact framework.
When I invoke it I get the following message:
An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occurred in
System.Web.Services.dll
However, when I invoke the same service with the .NET desktop/server
edition, it works just fine.
I'm at a loss on what to do. The SOAPException doesn't provide me any
information about what went wrong. Its a wrapped/lit web service the
request/response both validate against the schema. I've attached the
request, response, wsdl, and stack trace. If anyone has any ideas, I
would greatly appreciate their input. Thanks,
- Dan Diephouse
Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<ScannerToken xmlns="http://dspec.com/dokku/2004/08">
<Username>admin</Username>
<Password>admin</Password>
</ScannerToken>
</soap:Header>
<soap:Body>
<GetNextLoads xmlns="http://dspec.com/dokku/2004/08">
<Loads>4</Loads>
</GetNextLoads>
</soap:Body></soap:Envelope>
Response:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body>
<GetNextLoadsResponse xmlns="http://dspec.com/dokku/2004/08">
<DoorArray>
<Door>
<TripId>1</TripId>
<Name>1</Name>
<Status>To be loaded</Status>
<CutTime>0004-09-01T13:00:00.000Z</CutTime>
<Route>COL/ONT/LAX</Route>
</Door>
</DoorArray>
</GetNextLoadsResponse>
</soap:Body>
</soap:Envelope>
WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:tns="http://dspec.com/dokku/2004/08"
targetNamespace="http://dspec.com/dokku/2004/08">
<wsdl:types>
<xsd:schema targetNamespace="http://dspec.com/dokku/2004/08"
elementFormDefault="qualified" attributeFormDefault="qualified">
<xsd:element name="GetNextLoads">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Loads" type="xsd:int" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="GetNextLoadsResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="tnsoorArray" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DoorArray">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="tnsoor" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Door">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="TripId" nillable="true" type="xsd:long"/>
<xsd:element name="Name" nillable="true" type="xsd:string"/>
<xsd:element name="Status" nillable="true" type="xsd:string"/>
<xsd:element name="CutTime" nillable="true"
type="xsd:dateTime"/>
<xsd:element name="Route" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="GetNextLoadsRequest">
<wsdlart name="parameters" element="tns:GetNextLoads"/>
</wsdl:message>
<wsdl:message name="GetNextLoadsResponse">
<wsdlart name="parameters" element="tns:GetNextLoadsResponse"/>
</wsdl:message>
<wsdlortType name="DokkuServicePortType">
<wsdlperation name="GetNextLoads">
<wsdl:input name="GetNextLoadsRequest"
message="tns:GetNextLoadsRequest"/>
<wsdlutput name="GetNextLoadsResponse"
message="tns:GetNextLoadsResponse"/>
</wsdlperation>
</wsdlortType>
<wsdl:binding name="DokkuServiceBinding" type="tnsokkuServicePortType">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdlperation name="GetNextLoads">
<wsdlsoapperation soapAction=""/>
<wsdl:input name="GetNextLoadsRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdlutput name="GetNextLoadsResponse">
<wsdlsoap:body use="literal"/>
</wsdlutput>
</wsdlperation>
</wsdl:binding>
<wsdl:service name="DokkuService">
<wsdlort name="DokkuServicePort" binding="tnsokkuServiceBinding">
<wsdlsoap:address
location="http://localhost:8080/wasabi/services/Dokku"/>
</wsdlort>
</wsdl:service>
</wsdl:definitions>
Stack trace:
System.Web.Services.dll!System.Web.Services.Protocols.SoapMessageParser.execute()
+ 0x19d bytes
System.Web.Services.dll!System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(string
methodName = "GetNextLoads", System.Object[] parameters = {Length=1},
System.Web.Services.Protocols.WebClientAsyncResult asyncResult =
<undefined value>) + 0x38f bytes
System.Web.Services.dll!System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(string
methodName = "GetNextLoads", System.Object[] parameters = {Length=1})
+ 0x9 bytes
Dokku.exe!Dokku.DokkuManager.GetNextLoads() Line 43 + 0x7 bytes C#
Dokku.exe!Dokku.FrmMain.Form1_Load(System.Object sender =
{Dokku.FrmMain}, System.EventArgs e = {System.EventArgs}) Line 657 +
0x6 bytes C#
System.Windows.Forms.dll!System.Windows.Forms.Form.OnLoad(System.EventArgs
e = {System.EventArgs}) + 0x15 bytes
System.Windows.Forms.dll!System.Windows.Forms.Form._SetVisibleNotify(bool
fVis = true) + 0x1d bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.set_Visible(bool
value = true) + 0x1f bytes
OpenNETCF.Windows.Forms.dll!OpenNETCF.Windows.Forms.ApplicationEx.RunMessageLoop()
+ 0x12 bytes
OpenNETCF.Windows.Forms.dll!OpenNETCF.Windows.Forms.ApplicationEx.Run(System.Windows.Forms.Form
mainForm = {Dokku.FrmMain}) + 0x1d bytes
Dokku.exe!Dokku.FrmMain.Main() Line 628 C#
When I invoke it I get the following message:
An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occurred in
System.Web.Services.dll
However, when I invoke the same service with the .NET desktop/server
edition, it works just fine.
I'm at a loss on what to do. The SOAPException doesn't provide me any
information about what went wrong. Its a wrapped/lit web service the
request/response both validate against the schema. I've attached the
request, response, wsdl, and stack trace. If anyone has any ideas, I
would greatly appreciate their input. Thanks,
- Dan Diephouse
Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<ScannerToken xmlns="http://dspec.com/dokku/2004/08">
<Username>admin</Username>
<Password>admin</Password>
</ScannerToken>
</soap:Header>
<soap:Body>
<GetNextLoads xmlns="http://dspec.com/dokku/2004/08">
<Loads>4</Loads>
</GetNextLoads>
</soap:Body></soap:Envelope>
Response:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body>
<GetNextLoadsResponse xmlns="http://dspec.com/dokku/2004/08">
<DoorArray>
<Door>
<TripId>1</TripId>
<Name>1</Name>
<Status>To be loaded</Status>
<CutTime>0004-09-01T13:00:00.000Z</CutTime>
<Route>COL/ONT/LAX</Route>
</Door>
</DoorArray>
</GetNextLoadsResponse>
</soap:Body>
</soap:Envelope>
WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:tns="http://dspec.com/dokku/2004/08"
targetNamespace="http://dspec.com/dokku/2004/08">
<wsdl:types>
<xsd:schema targetNamespace="http://dspec.com/dokku/2004/08"
elementFormDefault="qualified" attributeFormDefault="qualified">
<xsd:element name="GetNextLoads">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Loads" type="xsd:int" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="GetNextLoadsResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="tnsoorArray" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DoorArray">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="tnsoor" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Door">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="TripId" nillable="true" type="xsd:long"/>
<xsd:element name="Name" nillable="true" type="xsd:string"/>
<xsd:element name="Status" nillable="true" type="xsd:string"/>
<xsd:element name="CutTime" nillable="true"
type="xsd:dateTime"/>
<xsd:element name="Route" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="GetNextLoadsRequest">
<wsdlart name="parameters" element="tns:GetNextLoads"/>
</wsdl:message>
<wsdl:message name="GetNextLoadsResponse">
<wsdlart name="parameters" element="tns:GetNextLoadsResponse"/>
</wsdl:message>
<wsdlortType name="DokkuServicePortType">
<wsdlperation name="GetNextLoads">
<wsdl:input name="GetNextLoadsRequest"
message="tns:GetNextLoadsRequest"/>
<wsdlutput name="GetNextLoadsResponse"
message="tns:GetNextLoadsResponse"/>
</wsdlperation>
</wsdlortType>
<wsdl:binding name="DokkuServiceBinding" type="tnsokkuServicePortType">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdlperation name="GetNextLoads">
<wsdlsoapperation soapAction=""/>
<wsdl:input name="GetNextLoadsRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdlutput name="GetNextLoadsResponse">
<wsdlsoap:body use="literal"/>
</wsdlutput>
</wsdlperation>
</wsdl:binding>
<wsdl:service name="DokkuService">
<wsdlort name="DokkuServicePort" binding="tnsokkuServiceBinding">
<wsdlsoap:address
location="http://localhost:8080/wasabi/services/Dokku"/>
</wsdlort>
</wsdl:service>
</wsdl:definitions>
Stack trace:
System.Web.Services.dll!System.Web.Services.Protocols.SoapMessageParser.execute()
+ 0x19d bytes
System.Web.Services.dll!System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(string
methodName = "GetNextLoads", System.Object[] parameters = {Length=1},
System.Web.Services.Protocols.WebClientAsyncResult asyncResult =
<undefined value>) + 0x38f bytes
System.Web.Services.dll!System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(string
methodName = "GetNextLoads", System.Object[] parameters = {Length=1})
+ 0x9 bytes
0x1c bytes C#Dokku.exe!Dokku.WS.DokkuService.GetNextLoads(int Loads = 4) Line 42 +
Dokku.exe!Dokku.DokkuManager.GetNextLoads() Line 43 + 0x7 bytes C#
Dokku.exe!Dokku.FrmMain.Form1_Load(System.Object sender =
{Dokku.FrmMain}, System.EventArgs e = {System.EventArgs}) Line 657 +
0x6 bytes C#
System.Windows.Forms.dll!System.Windows.Forms.Form.OnLoad(System.EventArgs
e = {System.EventArgs}) + 0x15 bytes
System.Windows.Forms.dll!System.Windows.Forms.Form._SetVisibleNotify(bool
fVis = true) + 0x1d bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.set_Visible(bool
value = true) + 0x1f bytes
OpenNETCF.Windows.Forms.dll!OpenNETCF.Windows.Forms.ApplicationEx.RunMessageLoop()
+ 0x12 bytes
OpenNETCF.Windows.Forms.dll!OpenNETCF.Windows.Forms.ApplicationEx.Run(System.Windows.Forms.Form
mainForm = {Dokku.FrmMain}) + 0x1d bytes
Dokku.exe!Dokku.FrmMain.Main() Line 628 C#