Skip to Content
avatar image
Former Member

How to retrive C4C wsdl service data from a ExtensionField

i need to retrive WarehouseCode (ExtensionField) from C4C to B1 Integration Framework

this is the xml i get from c4c with the data from ExtensionField (WarehouseCode) i made..

<Item>

<ID>10014</ID>

<Description>Articulo en venta</Description>

02http://sap.com/xi/AP/CustomerExtension/BYD/A2EBB"/>02>

</Item>

and this is the atom2 from B1 IntegrationFramework data recive with de WarehouseCode line i want to recive...

<xsl:for-each select="$salesOrderRequestRequest/SalesOrderRequest/Item">

<row>

<ID>

<xsl:value-of select="./ID"></xsl:value-of>

</ID>

<Description>

<xsl:value-of select="./Description"></xsl:value-of>

</Description>

<WarehouseCode>

<xsl:value-of select="./Warehouse"></xsl:value-of>

</WarehouseCode>

</row>

</xsl:for-each>

in the screenshoot shows Atom(Integration Framework)

and the wsdl from c4c

thanks for help me.. sorry for my English...

atombif.png (23.4 kB)
wsdl.png (38.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jun 08, 2017 at 10:01 PM

    i found the solution..

    only need to agregate the namespace (xmlns:n1="http://sap.com/xi/AP/CustomerExtension/BYD/A2EBB") into the stylesheet (atom B1IF)

    and now we can retrive data like this:

    <Field>

    <xsl:value-of select="./n1:Field"></xsl:value-of>

    </Field>

    and this is all..

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Cristhiam

      I have the same problem but I can not solve it, add the namespace to the atom2 of the scenario that I want to replicate but i have an error en SAP B1 IF, Can you help me?

      I am trying to connect C4C with SAP B1, quote scenario to sales order in SAP B1

      A part of the C4C's payload is:

      <SalesOrderTotalvalues>
      <GrossAmount currencyCode="USD">1110.0</GrossAmount>
      <NetAmount currencyCode="USD">1110.0</NetAmount>
      <TaxAmount currencyCode="USD">0.0</TaxAmount>
      </SalesOrderTotalvalues>
      100.0http://sap.com/xi/AP/CustomerExtension/BYD/A2MW9">100.0>
      </SalesOrderRequest>
      </SalesOrderRequestRequest>
      </n0:SalesOrderRequestMassRequest>

      I write this code in ATOM2

      <xsl:stylesheet
      xmlns:b1e="urn:com.sap.b1i.sim:b1event"
      xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent"
      xmlns:b1im="urn:com.sap.b1i.sim:b1imessage"
      xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms"
      xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter"
      xmlns:js="com.sap.b1i.bpc_tools.Javascript"
      xmlns:rfc="urn:sap-com:document:sap:rfc:functions"
      xmlns:sim="urn:com.sap.b1i.sim:entity"
      xmlns:uplt="urn:com.sap.b1i.xcellerator:upltdoc"
      xmlns:utils2="com.sap.b1i.bpc_tools.Utilities"
      xmlns:vpf="urn:com.sap.b1i.vplatform:entity"
      xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc"
      xmlns:n1="http://sap.com/xi/AP/CustomerExtension/BYD/A2MW9"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" n1:force="" bfa:force="" vpf:force="" jdbc:force="" rfc:force="" b1ie:force="" b1e:force="" xci:force="" sim:force="" utils2:force="" b1im:force="" uplt:force="" js:force="">
      <xsl:output method="xml" encoding="UTF-8" indent="yes"></xsl:output>

      .....

      <U_CE_Fletes>
      <xsl:value-of select="./n1:FactoryPrice"></xsl:value-of>
      </U_CE_Fletes>

      The error is:

      XMLParser: Prefix 'n1' is not mapped to a namespace

      Do you have any idea? I need to modify more files?

      Best regards

      Ricardo García