Hi,
I'm testing some functions from B1if, one of these is a Business Partner Add from Web Service Call, im using the B1 Object method, my scenario work fine in debug mode, but when i activate my scenario and test with PHP nuSOAP, my result is
"Array
(
[status] => failure
[msg] => Exception : DI error: Invoke of: GetBusinessObjectFromXML
Source:
Description: Invalid item name '' in Enum 'BoCardTypes'. The valid names are: 'cCustomer'-'C', 'cSupplier'-'S', 'cLid'-'L'
)"
like to dont have values in the request, when i put static values in the atom2 work fine.
im using this code for get the values:
<xsl:value-of select="$msg/setSocioNegocio/CardCode"></xsl:value-of>
PHP nuSOAP gen this SOAP
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns5913:setSocioNegocio xmlns:ns5913="http://tempuri.org">
<CardCode xsi:type="xsd:string">9876543</CardCode>
<CardName xsi:type="xsd:string">Prueba desde WEB</CardName>
<FederalTaxID xsi:type="xsd:string">SMD101010ONN</FederalTaxID>
<CardType xsi:type="xsd:string">C</CardType>
<Phone1 xsi:type="xsd:string">107489</Phone1>
<EmailAddress xsi:type="xsd:string">asd@asdcom.mx</EmailAddress>
<Website xsi:type="xsd:string">www.google.com.mx</Website>
</ns5913:setSocioNegocio>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
in test i just use:
<?xml version='1.0' encoding="UTF-8"?>
<setSocioNegocio>
<CardCode>12345657</CardCode>
<CardName>Prueba B1if</CardName>
<FederalTaxID>SMD101010ONN</FederalTaxID>
<CardType>C</CardType>
<Phone1>6677107489</Phone1>
<EmailAddress>asd@asd.com.mx</EmailAddress>
<Website>powerhost.com.mx</Website>
</setSocioNegocio>
Greets