cancel
Showing results for 
Search instead for 
Did you mean: 

XML data load to BW

Former Member
0 Kudos

Hi Gurus!!!

I followed "How to send xml data to BW" and I am stuck at one point. Once running html page by specifying path name and my BW server I send that example file (file size is showed), get connected to my BW server and receive the following message from Response XML:

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Document Format Error</faultstring><detail>SOAP Runtime Exception: CSoapExceptionDocumentFormat : document format error: XML kernel processor cannot read tag ( kernel rc=1 ) ( last error=XML prefix not allowed for PI tags)</detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

I checked RSA7 and obviously my delta queue does not get any data.

Has anybody faced same problem??? If so I would appreciate any suggestions

Thanx alot

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member93896
Active Contributor
0 Kudos

Hello Bartosz, Heiko,

you can use transaction WSADMIN to test the web service for the XML data load. If everything is setup correctly, the test icon will open a brower window where you can enter test data and call the web service. You can also see the complete SOAP message and response and compare it to the messages that you are using.

Regards,

Marc

SAP NetWeaver RIG, US BI

0 Kudos

Thanks for your reply Marc,

I found the error which was not in my coding but in my xml-stream that was not correctly encoded... Now everything works fine!

best regards,

Heiko

Former Member
0 Kudos

Hi Marc,

I also got the same error what Bartosz got.

When i checked the transaction which was mentioned by you WSADMIN,Thers is no such transaction existing.

Can you guide me to solve this problem.

Please its urgent

Regards,

Rajeswari

glenleslie
Advisor
Advisor
0 Kudos

Hi,

Do the fields in your transfer structure match the "fields" (tags) in the XML document exactly? Have you tried forcing a change in your xfer struct (change a letter in a description-- something innocuous) and then regenerating (activating) the tran struct and the RFC module for the XML conversion?

0 Kudos

Hello,

I get the same error message when calling the rfc service from client program on webserver. When I use the html example everything works fine. Can someone tell me what is wrong in my coding???

  • create client for calling soap/rfc url

cl_http_client=>create_internal(

IMPORTING client = l_client ).

  • set xml as headerfield

l_client->request->set_header_field( name = 'Content-Type' value =

'txt/xml').

  • create an entity for appending xml-request-data

CALL METHOD l_client->request->add_multipart

RECEIVING

entity = l_entity.

  • put xml-request data to entity

CALL METHOD l_entity->append_cdata

EXPORTING

data = pi_xml.

cl_http_utility=>set_request_uri( request =

l_client->request uri = l_soap_url ). ".../soap/rfc

  • send request

l_client->send( timeout =

l_client->co_timeout_infinite ).

IF sy-subrc NE 0.

ENDIF.

  • get response

CALL METHOD l_client->receive

EXCEPTIONS

http_communication_failure = 1

http_invalid_state = 2

http_processing_failed = 3

OTHERS = 4.

IF sy-subrc <> 0.

ENDIF.

CALL METHOD

l_client->response->get_status( IMPORTING code = l_subrc ).