on 01-13-2004 5:36 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ).
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.