cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with Calling a Webservice via HTTP

0 Kudos

Hello,

i'm facing a Problem calling a Webservice.

The webservice should make a goods Output.

Till now, I have created a Service Definition, a Consumer Proxy, a Transformation (XML-to-ABAP), Logical Ports via T SOAMANAGER, HTTP Request handler Class and a Webservice Calling Report as ABAP.

When I call the Webservice via http, i get the following XML-Output:

-<soap-env:Envelope
xmlns:soap-env
="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header/>
<soap-env:Body>
-<soap-env:Fault>
<faultcode>soap-env:Server</faultcode>
<faultstring
xml:lang
="en">SRT: Wrong Content-Type
and empty HTTP-Body received: ("HTTP Code 200 : OK")
</faultstring>
-<detail>
<Component>COREMSG</Component>
-<ChainedException>
<Exception_Name>CX_SOAP_CORE</Exception_Name>
<Exception_Text>SRT: Wrong Content-Type and empty HTTP-Body
received: ("HTTP Code 200 : OK")
</Exception_Text>
</ChainedException>
</ns:SystemFault>
<Host>undefined</Host>
<Component>COREMSG</Component>
-<ChainedException
asx:root
="asx:abap" version="1.0" xmlns:asx="http://www.sap.com/abapxml">
-<asx:values>
<EXCEPTIONhref="#o176" />
</asx:values>
-<cls:CX_SOAP_CORE
id
="o176">
-<CX_ROOT>
<TEXTID>0018FE864EEE1DECA69CF9C71ACB337F</TEXTID>
<PREVIOUS/>
<KERNEL_ERRID/>
-<INTERNAL_SOURCE_POS>
<PROGID>81</PROGID>
<CONTID>1193</CONTID>
</INTERNAL_SOURCE_POS>
</CX_ROOT>
<CX_NO_CHECK/>
-<CX_SOAP_CORE>
-<E_LOCATION>
<CLASS>CL_SOAP_HTTP_TPBND_ROOT</CLASS>
<METHOD>get_http_headers</METHOD>
<ID>3</ID>
</E_LOCATION>
<E_TEXT>SRT: Wrong Content-Type and empty HTTP-Body received: ("HTTP Code 200 :
OK")
</E_TEXT>
<E_ID>1032</E_ID>
<E_FAULT_LOCATION>1</E_FAULT_LOCATION>
<E_AREA>COREMSG</E_AREA>
<E_HOST>0</E_HOST>
<E_PROCESS_CONTROL/>
</CX_SOAP_CORE>
</cls:CX_SOAP_CORE>
</asx:heap>
</ChainedException>
</ns:SystemFault>
</detail>
</soap-env:Fault>
</soap-env:Body>
</soap-env:Envelope>
I activeded the debug mode for this webservice in SICF and while Debugging I see that there is no call of my handler Class because there are some missing variables in  if_http_extension~handle_request, which is the standart calling Routine from CL_SOAP_HTTP_EXTENSION
Do you maybe have a solution for my Problem?
Regards,
Dennis

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

I found out, that the handler, which is called when i use my link is in the class CL_SOAP_HANDLER_EXTENSION and in this class, my handler is not in this one.

How can I provide, that he will call my handler?

Regards,

DEnnis