[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Null values and WSDL2RPG and HTTPAPI?



All,

Finally got my chance to create call and web service from RPG...

WSDL2RPG and HTTPAPI should make quick work of my POC...

One question, in the test program generated by WSDL2RPG, how to I
indicate that some values are null?

The WSDL for the service in question has:
         <xsd:complexType name="Contact">
            <xsd:sequence>
               <xsd:element type="xsd:boolean" name="catalogMailings"
minOccurs="1" maxOccurs="1"/>
               <xsd:element type="xsd:string" name="contactFirstName"
minOccurs="1" maxOccurs="1" nillable="true"/>
               <xsd:element type="xsd:string" name="contactLastName"
minOccurs="1" maxOccurs="1" nillable="true"/>
               <xsd:element type="xsd:boolean" name="decisionMaker"
minOccurs="1" maxOccurs="1"/>
               <xsd:element type="xsd:string" name="email"
minOccurs="1" maxOccurs="1" nillable="true"/>
               <xsd:element type="xsd:long" name="faxNumber"
minOccurs="1" maxOccurs="1" nillable="true"/>
               <xsd:element type="xsd:string"
name="generalInstructions" minOccurs="1" maxOccurs="1"
nillable="true"/>
               <xsd:element type="xsd:long" name="id" minOccurs="1"
maxOccurs="1" nillable="true"/>
               <xsd:element type="xsd:long" name="mobilePhoneNumber"
minOccurs="1" maxOccurs="1" nillable="true"/>
               <xsd:element type="xsd:boolean"
name="opinionSurveyMailings" minOccurs="1" maxOccurs="1"/>
               <xsd:element type="xsd:boolean" name="otherMailings"
minOccurs="1" maxOccurs="1"/>
               <xsd:element type="xsd:int" name="phoneExtension"
minOccurs="1" maxOccurs="1" nillable="true"/>
               <xsd:element type="xsd:long" name="phoneNumber"
minOccurs="1" maxOccurs="1" nillable="true"/>
               <xsd:element type="xsd:boolean" name="prcContact"
minOccurs="1" maxOccurs="1"/>
               <xsd:element type="xsd:string" name="title"
minOccurs="1" maxOccurs="1" nillable="true"/>
            </xsd:sequence>

Thanks!
Charles
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------