2012 Sep 10 11:29 AM
Hi,
I have following problem:
I want to call a webservice to get the content of a file in the KM.
I tried that:
CREATE OBJECT lo_ws_rep_proxy
EXPORTING
LOGICAL_PORT_NAME = 'ZTEST_REPOSITORY_FRAMEWORK_METHODS'.
…
* I use the extended xml handling because there was an error, that there is no response without the extended handling
lo_payload_protocol ?= lo_ws_rep_proxy->get_protocol( if_wsprotocol=>payload ).
lo_payload_protocol->set_extended_xml_handling( extended_xml_handling = 'X' ).
CALL METHOD lo_ws_rep_proxy->GET_CONTENT
EXPORTING
INPUT = ls_input2
IMPORTING
OUTPUT = es_output2.
But when testing that, I get an empty response. Only the controller of the output contains a field “RESPONSE” with the value 3.
When I test my service consumer directly I also get an empty response:
<nm:getContentResponse xmlns:nm="urn:RepositoryFrameworkWSVi" xmlns:prx="urn:sap.com:proxy:KT1:/1SAI/TAJ1DF895401030AFBA5D2B:702" />
Only the original response contains the data:
- <n0:getContentResponse xmlns:n0="urn:RepositoryFrameworkWSVi" xmlns:rn13="urn:java/lang" xmlns:rn12="urn:com.sap.netweaver.bc.rf.ws.security" xmlns:rn11="urn:com.sap.netweaver.bc.rf.ws.cfgrf" xmlns:rn10="http://schemas.xmlsoap.org/soap/encoding/" xmlns:rn8="java:sap/standard" xmlns:rn9="urn:com.sap.netweaver.bc.rf.ws.version" xmlns:rn7="urn:com.sap.netweaver.bc.rf.ws.perfrf" xmlns:rn6="urn:com.sap.netweaver.bc.rf.ws.property" xmlns:rn4="urn:com.sap.netweaver.bc.rf.ws.content" xmlns:rn5="urn:com.sap.netweaver.bc.rf.ws.exception" xmlns:rn3="urn:com.sap.netweaver.bc.rf.ws.lock" xmlns:rn1="urn:com.sap.netweaver.bc.rf.ws.lookup" xmlns:rn2="urn:com.sap.netweaver.bc.rf.ws.namespace" xmlns:rn0="urn:/RepositoryFrameworkWSVi" xmlns:rpl="urn:RepositoryFrameworkWSVi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <Response>
<rn4:content>RGllcyBpc3QgZWluIFRlc3Rkb2t1bWVudCBm/HIgZGllIFVtbGF1Zm1hcHBlLi4u</rn4:content>
- <rn4:metadata>
<rn4:eTag>60129542158</rn4:eTag>
<rn4:lastModified>2012-09-06T12:12:49.820+02:00</rn4:lastModified>
<rn4:length>48</rn4:length>
<rn4:type>text/plain</rn4:type>
</rn4:metadata>
</Response>
</n0:getContentResponse>
Can you help me with that?
Hi,
I have following problem:
I want to call a webservice to get the content of a file in the KM.
I tried that:
CREATE OBJECT lo_ws_rep_proxy
EXPORTING
LOGICAL_PORT_NAME = 'ZTEST_REPOSITORY_FRAMEWORK_METHODS'.
…
* I use the extended xml handling because there was an error, that there is no response without the extended handling
lo_payload_protocol ?= lo_ws_rep_proxy->get_protocol( if_wsprotocol=>payload ).
lo_payload_protocol->set_extended_xml_handling( extended_xml_handling = 'X' ).
CALL METHOD lo_ws_rep_proxy->GET_CONTENT
EXPORTING
INPUT = ls_input2
IMPORTING
OUTPUT = es_output2.
But when testing that, I get an empty response. Only the controller of the output contains a field “RESPONSE” with the value 3.
When I test my service consumer directly I also get an empty response:
<nm:getContentResponse xmlns:nm="urn:RepositoryFrameworkWSVi" xmlns:prx="urn:sap.com:proxy:KT1:/1SAI/TAJ1DF895401030AFBA5D2B:702" />
Only the original response contains the data:
- <n0:getContentResponse xmlns:n0="urn:RepositoryFrameworkWSVi" xmlns:rn13="urn:java/lang" xmlns:rn12="urn:com.sap.netweaver.bc.rf.ws.security" xmlns:rn11="urn:com.sap.netweaver.bc.rf.ws.cfgrf" xmlns:rn10="http://schemas.xmlsoap.org/soap/encoding/" xmlns:rn8="java:sap/standard" xmlns:rn9="urn:com.sap.netweaver.bc.rf.ws.version" xmlns:rn7="urn:com.sap.netweaver.bc.rf.ws.perfrf" xmlns:rn6="urn:com.sap.netweaver.bc.rf.ws.property" xmlns:rn4="urn:com.sap.netweaver.bc.rf.ws.content" xmlns:rn5="urn:com.sap.netweaver.bc.rf.ws.exception" xmlns:rn3="urn:com.sap.netweaver.bc.rf.ws.lock" xmlns:rn1="urn:com.sap.netweaver.bc.rf.ws.lookup" xmlns:rn2="urn:com.sap.netweaver.bc.rf.ws.namespace" xmlns:rn0="urn:/RepositoryFrameworkWSVi" xmlns:rpl="urn:RepositoryFrameworkWSVi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <Response>
<rn4:content>RGllcyBpc3QgZWluIFRlc3Rkb2t1bWVudCBm/HIgZGllIFVtbGF1Zm1hcHBlLi4u</rn4:content>
- <rn4:metadata>
<rn4:eTag>60129542158</rn4:eTag>
<rn4:lastModified>2012-09-06T12:12:49.820+02:00</rn4:lastModified>
<rn4:length>48</rn4:length>
<rn4:type>text/plain</rn4:type>
</rn4:metadata>
</Response>
</n0:getContentResponse>
Can you help me with that?
2012 Sep 12 7:18 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |