SoapHeaderException / deserialization error

I don't think my employer will let me post the entire WSDL. Are there specific sections of it that would be helpful?
[123 byte] By [roneil] at [2007-12-16]
# 1
Here are the relevant sections of the WSDL. I am am calling createHostingProduct() which takes in a HostingProduct and returns a HostingProductResponse. I think the issue has something to do with the booleans in HostingProduct, but don't know enough to figure out what...
<xsd:complexType name="HostingProduct">
<xsd:sequence>
<xsd:element name="accountId" type="xsd:string" />
<xsd:element name="clientRef" type="xsd:string" />
<xsd:element name="directoryPointersToAdd" type="tns:ArrayOfDirectoryPointer" />
<xsd:element name="directoryPointersToRemove" type="tns:ArrayOfDirectoryPointer" />
<xsd:element name="domainPointersToAdd" type="tns:ArrayOfstring" />
<xsd:element name="domainPointersToRemove" type="tns:ArrayOfstring" />
<xsd:element name="httpSuspensionReason" type="xsd:string" />
<xsd:element name="oldProdId" type="xsd:string" />
<xsd:element name="prodId" type="xsd:string" />
<xsd:element name="productInstanceId" type="xsd:string" />
<xsd:element name="suspendFtpService" type="soap11-enc:boolean" />
<xsd:element name="suspendHttpService" type="soap11-enc:boolean" />
<xsd:element name="suspendMailService" type="soap11-enc:boolean" />

<xsd:element name="vanityDomainName" type="xsd:string" />
<xsd:element name="vanityHostName" type="xsd:string" />
<xsd:element name="vendorId" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
...
<xsd:complexType name="HostingProductResponse">
<xsd:sequence>
<xsd:element name="ftpPassword" type="xsd:string" />
<xsd:element name="ftpUserName" type="xsd:string" />
<xsd:element name="mailIP" type="xsd:string" />
<xsd:element name="webIP" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
...
<message name="HostingProcessor_createHostingProduct">
<part name="HostingProduct_1" type="ns3:HostingProduct" />
</message>
<message name="HostingProcessor_createHostingProductResponse">
<part name="result" type="ns3:HostingProductResponse" />
</message>
...

<operation name="createHostingProduct" parameterOrder="HostingProduct_1">
<input message="tns:HostingProcessor_createHostingProduct" />
<output message="tns:HostingProcessor_createHostingProductResponse" />
<fault name="PartnerGatewayException" message="tns:PartnerGatewayException" />
</operation>
...
<operation name="createHostingProduct">
<soap:operation soapAction="" />
<input>
<soap:body use="encoded" namespace="http://pgs.networksolutions.com/HostingService/wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="http://pgs.networksolutions.com/HostingService/wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
<fault name="PartnerGatewayException">
<soap:fault use="encoded" name="PartnerGatewayException" namespace="http://pgs.networksolutions.com/HostingService/wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</fault>
</operation>

roneil at 2007-9-9 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...
# 2

It appears that the Sun server is writing out xsd:boolean rather than soap-enc:boolean -- which the schema states should be used.

Do you have a copy of the actual SOAP message -- that will confirm this problem?

douglasp at 2007-9-9 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...
# 3
Here is my request:
POST /pgs/HostingService HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50215.44)
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Host: dynamo1.int.netsol.com:52000
Content-Length: 1254
Expect: 100-continue
Accept-Encoding: gzip
Connection: Keep-Alive
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://pgs.networksolutions.com/HostingService/wsdl" xmlns:types="http://pgs.networksolutions.com/HostingService/wsdl/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><tns:createHostingProduct><HostingProduct_1 href="#id1" /></tns:createHostingProduct><q1:HostingProduct id="id1" xsi:type="q1:HostingProduct" xmlns:q1="http://pgs.networksolutions.com/HostingService/types"><accountId xsi:type="xsd:string">inquent.netsol.pgstest.134850.327081</accountId><clientRef xsi:type="xsd:string">client ref</clientRef><prodId xsi:type="xsd:string">netsol-standard-unix</prodId><productInstanceId xsi:type="xsd:string">PGS.1575223</productInstanceId><suspendFtpService xsi:type="xsd:boolean">false</suspendFtpService><suspendHttpService xsi:type="xsd:boolean">false</suspendHttpService><suspendMailService xsi:type="xsd:boolean">false</suspendMailService><vendorId xsi:type="xsd:string">207</vendorId></q1:HostingProduct></soap:Body></soap:Envelope>


And the response:
HTTP/1.1 500 Internal Server Error
X-Powered-By: Servlet/2.4
SOAPAction: ""
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Mon, 15 Aug 2005 14:42:42 GMT
Server: Sun-Java-System/Application-Server-PE-8.0
Connection: close
2cf
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://pgs.networksolutions.com/HostingService/types" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><env:Body><env:Fault><faultcode>env:Client</faultcode><faultstring>JAXRPC.TIE.01: caught exception while handling request: deserialization error: unexpected element type: expected={http://schemas.xmlsoap.org/soap/encoding/}boolean, actual={http://www.w3.org/2001/XMLSchema}boolean</faultstring></env:Fault></env:Body></env:Envelope>
0

I'm still new to all of this, but I assume this means that the deserialization error is happening within the Java server because it wants soap-enc booleans and is receiving xsd. Is there some way I can work around this by forcing VS 2005 to send soap-enc booleans programmatically?

roneil at 2007-9-9 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...

.NET Development

Site Classified