[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Null values and WSDL2RPG and HTTPAPI?
Charles,
I could be wrong, but you won't get any null values back in your XML. What you might get is an empty element (length of zero), but I think it would be very hard to send a null in XML. According to this http://www.ibm.com/developerworks/xml/library/ws-tip-null.html you might get a null value indicator in the attribute but the value of the element will still be zero length.
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Charles Wilt
> Sent: Tuesday, January 04, 2011 2:18 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: 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
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------