Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Read value from request message


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



  [status] => failure

  [msg] => Exception : DI error: Invoke of: GetBusinessObjectFromXML


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="" xmlns:SOAP-ENV="" xmlns:xsd="" xmlns:xsi="" xmlns:SOAP-ENC="">


  <ns5913:setSocioNegocio xmlns:ns5913="">

  <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"></EmailAddress>

  <Website xsi:type="xsd:string"></Website>




in test i just use:

<?xml version='1.0' encoding="UTF-8"?>



  <CardName>Prueba B1if</CardName>








Former Member
Former Member replied
Not what you were looking for? View more on this topic or Ask a question