Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 08, 2008 at 04:32 PM

    Can you post what your expected XML result looks like ? The values structure is an internal structure of how BC represents that information. What types are you passing back as output variables in your service ? A recordlist ? Is it possible that you forgot to call a service step which converts document to string (so that you get the desired XML) ?

    CSY

    Add comment
    10|10000 characters needed characters exceeded