Skip to Content

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

Problem with Business Connector 4.8

Hi Everybody, first of all I would like to clarify that this is a question about SAP BC and NOT XI, but I did not know wherelse to put this message.

I have installed SAP BC 4.8. Created a new RFC map (SAP BC -> SAP) of a FM called Z_PO_GET_LIST.

Then went to Business Connector DEVELOPER and created an output template, XML type, for the output of the service.

When I test the service from the Business Connector SERVER it works perfect, I get as a result the desired XML with the PO Orders in the same format defined in the template.

When I test it from the Internet Explorer putting in the address bar http://localhost:5555/invoke/test/Z_PO_GET_LIST it also works great, and I get the expected XML as result.

The problem is when I try to cosume the service from an external .net application, I create an HTTP Client with all needed information (server, port, baseurl, etc) and when I send a POST to the service I get an XML with the result but NOT in the expected format (with all "value" tags instead of the tags that I defined in the template) but with this format:

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

Values version="2.0">

<value name="serverName">IDES_SERVER</value>

<value name="$rfcname">Z_PO_GET_LIST</value>

<record name="ZPO_CABEZALES" javaclass="com.wm.util.Table">

<array name="cols" type="value" depth="1">

<value>CO_DATE</value>

<value>DOC_CAT</value>

<value>CREATED_ON</value>

<value>CREATED_BY</value>

<value>VENDOR</value>

<value>NAME1</value>

<value>CURRENCY</value>

<value>DOC_DATE</value>

<value>TARGET_VAL</value>

</array>

<list name="rows">

<array type="object" depth="1">

<value>1000</value>

<value>F</value>

<value>2002-10-16</value>

<value>GIESEB</value>

<value>0000001000</value>

<value>C.E.B.BERLIN</value>

<value>EUR</value>

<value>2002-10-16</value>

<value>5000.0000</value>

</array>

<array type="object" depth="1">

<value>3000</value>

<value>F</value>

<value>2004-05-04</value>

...

...

Does anyone please know how can I get the response from the service in the expected format (using the defined template) just in the same way I get it from the "test service" funtionality in the BC Server?

Any clue or help would be really appreciated and rewarded.

Thanks in advance,

Sebastian.

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