users@jax-rpc.java.net

Re: deserialization error

From: David Sharp <dsharp02_at_gmail.com>
Date: Fri, 20 Apr 2007 13:00:19 -0500

Try adding changing your request to use the attribute xsi:nil="true" on the
StartingActionDate element (see example below).

Alternatively, since minOccurs=0, you can just omit the element entirely
when the StartingActionDate is null.

Dave

<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope
   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:q0="http://external-apps.naic.org/rirsWS"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
   <q0:GetRegulatoryActionsHitListRequest>
     <q0:EntityIdentification>555< /q0:EntityIdentification>
     <q0:StartingActionDate xsi:nil="true"/>
     <q0:State />
   </q0:GetRegulatoryActionsHitListRequest>
 </soapenv:Body>
</soapenv:Envelope>



On 4/16/07, matt_at_bennettsworld.com <matt_at_bennettsworld.com> wrote:
>
>
> WSDL Type
> =========
> <xsd:complexType name="GetRegulatoryActionsHitListRequestType">
> <xsd:sequence>
> <xsd:element name="EntityIdentification"
> type="xsd:positiveInteger" nillable="false" />
> <xsd:element name="StartingActionDate" type="xsd:dateTime"
> nillable="true" minOccurs="0" maxOccurs="1" />
> <xsd:element name="State" type="xsd:string" nillable="true"
> minOccurs="0" maxOccurs="1" />
> </xsd:sequence>
> </xsd:complexType>
>
>
> SOAP Request
> ============
> <?xml version="1.0" encoding="UTF-8" ?>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:q0="http://external-apps.naic.org/rirsWS"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <q0:GetRegulatoryActionsHitListRequest>
> <q0:EntityIdentification>555</q0:EntityIdentification>
> <q0:StartingActionDate />
> <q0:State />
> </q0:GetRegulatoryActionsHitListRequest>
> </soapenv:Body>
> </soapenv:Envelope>
>
>