Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #190 (closed defect: duplicate)

Opened 3 years ago

Last modified 3 years ago

salesforce.com - undefined string maps to #<SOAP::Mapping::Object:0x...> instead of ""

Reported by: Rup Assigned to: nahi
Priority: highest Milestone: 1.5.6
Component: soap4r Version: 1.5
Keywords: Cc:

Description

I thought that 1679 fixed this, but it is not the case.

Here is the wiredump

<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<retrieveResponse xmlns="urn:partner.soap.sforce.com">

<result xsi:type="sf:sObject" xmlns:sf="urn:sobject.partner.soap.sforce.com">

<sf:type>Account</sf:type> <sf:Id>001300000021QoGAAU</sf:Id> <sf:Id>001300000021QoGAAU</sf:Id> <sf:Name>Burlington Textiles Corp of America</sf:Name> <sf:Site xsi:nil="true"/> <== PROBLEM IS HERE ***** <sf:Phone>(336) 222-7000</sf:Phone> <sf:Fax>(336) 222-8000</sf:Fax> <sf:BillingCity>Burlington</sf:BillingCity> <sf:BillingCountry>USA</sf:BillingCountry> <sf:BillingPostalCode>27215</sf:BillingPostalCode> <sf:BillingStreet>525 S. Lexington Ave</sf:BillingStreet>

</result>

</retrieveResponse>

</soapenv:Body>

</soapenv:Envelope>

where (cf. partner.xsdl.xml) :

<element name="retrieveResponse">

<complexType>

<sequence>

<element name="result" type="ens:sObject" nillable="true" minOccurs="0" maxOccurs="unbounded"/>

</sequence>

</complexType>

</element>

and

<complexType name="sObject">

<sequence>

<element name="type" type="xsd:string"/> <element name="fieldsToNull" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/> <element name="Id" type="tns:ID" nillable="true" /> <any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>

</sequence>

</complexType>

It seems that 'processContents="lax"' is not used to change the behaviour of wsdl4r : am I right ?

Rup

Change History

01/18/06 09:23:29 changed by Rup

same as 189

Rup

02/04/06 16:57:18 changed by nahi

  • priority changed from normal to highest.
  • milestone changed from undefined to 1.5.6.

02/05/06 22:00:46 changed by nahi

  • status changed from new to closed.
  • resolution set to duplicate.

move to #189