cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to Soap Error

Former Member
0 Kudos

Dear Friends,

I am making one scenario in SAP Pi 7.0. It is Proxy to Soap. Abap Proxy in ECC is sender and Soap is receiver channel. When i test this proxy in sproxy in ecc, it gives a message of "message.general". When i test the status of messages in SXMb_MONI, it shoes red dot on both request and response message and in response message it gives error

"com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized"

Can anybody tell what is this error and how it can be resolved. I am new to PI. Thanks

Regards

Imran

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi Imran,

This type of problems may occurs if the user is locked in target system or the RFC connection may be fails

Please check the user in receiver system and RFC Connection for the receiver system in sap PI system.

Regards

Ravinder.

former_member184789
Active Contributor
0 Kudos

Hi,

In the SOAP receiver communication channel, configure the User authentication. Provide the User & pwd of a user who has access to the specified URL. Also in the WS navigator tool, check if you can access the URL. The path for WS navigator is http://<host>:port/wsnavigator. If the webservice is an external webservice then it has to be added in the whitelist of WS navigator.

Former Member
0 Kudos

Dear Adarsh,

Thanks for your reply. i did configure user authentication in SOAP receiver channel. I have test my WSDL file in XML spy, it works fine. When i test my URL in WS navigator, it gives this message

Cannot download WSDL from http://host:port/sap/xi/engine?type=entry&amp;version=3.0&amp;Sender.Service=Soap_Sender_Cus&amp;Int...: Invalid Response Code: (500) Empty HTTP request received. The requested URL was:"http://host:port/sap/xi/engine?type=entry&version=3.0&Sender.Service=Soap_Sender_Cus&Interface=http%..."

if i try this URL in WS navigator http://host:port/XISOAPAdapter/MessageServlet?channel=:Soap_Sender_Cus:Soap_Cust&amp;version=3.0&amp...

it gives this message

Cannot download WSDL from http://host:port/XISOAPAdapter/MessageServlet?channel=:Soap_Sender_Cus:Soap_Cust&amp;version=3.0&amp...: Given http://host:port/XISOAPAdapter/MessageServlet?channel=:Soap_Sender_Cus:Soap_Cust&version=3.0&Sender.... is not WSDL definitions file !

First kindly tell am i using the right URL's? If my WSDL file works fine in XML spy, than why the URL is not working in WS navigator?is there any problem in URL? This is not external web service. I made the exposing scenario which  is Soap to RFC. I made WSDL file of this exposing scenario and now i want to consume this web scenario in ECC using proxy to Soap.

Thanks and waiting for your reply

Former Member
0 Kudos

Hi Imran,

Can you please try

http://<server>:<port>/XISOAPAdapter/MessageServlet?channel=:<service>:<channel> in soap receiver channel and check if it works.

Regards,

Beena

Former Member
0 Kudos

Dear Beena,

i tried this url . But same error

"com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized"

Regadrs

former_member184789
Active Contributor
0 Kudos

Copy & paste the URL in internet explorer  to see if it opens. If the WSDL is configured properly, it will open from IE.

Former Member
0 Kudos

Dear Adarsh,

when i test this url in ie, it gives this message

Message Servlet is in Status OK

Status information:

Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/NW04S_14_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#1 $) bound to /MessageServlet

Classname ModuleProcessor: null

Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean

Lookupname for remoteModuleProcessorLookupName: null

ModuleProcessorClass not instantiated

ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0

ModuleProcessorRemote not instantiated

what does this mean? i am still getting this error in sxmb_moni after executing the proxy from ecc.

com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized

kindly help

Regadrs

IMran

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

If you are using dynamic configuration to build the URL, then you should also do the same for the user via DC (Technical Name: TAuthKey ) and place the basic authentication data under the Authentication Keys (Advanced Tab of Soap Receiver CC).

Hope this helps,

Mark

Former Member
0 Kudos

Dear Mark,

Can you please explain in detail how can i do this " user via DC (Technical Name: TAuthKey )" thing. I have put the authentication data in SOAP receiver channel. When i test WSDL file, the one i am using for consuming, in XML spy, it ask for PI user name and password. I have given the same user name and password in SOAP receiver channel. I am using SOAP receiver channel in business service and RFC sender channel in Business system. Shall i both try in business service? kindly suggest.

Thanks

Regards

Imran

iaki_vila
Active Contributor
0 Kudos

Hi Imram,

You could try first with an external tool like SOAPui. But the error seems to be in the credentials or the URL endpoint.

Regards.

Former Member
0 Kudos

Dear Friends,

the url i am using for WSDl fiel is

http://host:port/XISOAPAdapter/MessageServlet?channel=:Soap_Sender_Cus:Soap_Cust&amp;version=3.0&amp...

I am using this URL in SOAP receiver channel. When i test this URL in XML SPY, it works fine. it brings the data from other side. when i test this URL in IE, it gives message

Message Servlet is in Status OK

Status information:

Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/NW04S_14_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#1 $) bound to /MessageServlet

Classname ModuleProcessor: null

Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean

Lookupname for remoteModuleProcessorLookupName: null

ModuleProcessorClass not instantiated

ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0

ModuleProcessorRemote not instantiated

Kindly verify thst my URL is ok or not?it is working fine in xml spy. thanks to all

smavachee
Active Contributor
0 Kudos

Are you putting host and port correctly ? sorry.. I don't see them in URL.

We have two approaches to generate WSDL,

If you are on PI 7.1

> Sender Agreement > Display WSDL

Or

>Tools >  Display WSDL > Provide the required parameters

Regards,

Sunil

Former Member
0 Kudos

Dear Sunil,

I am putting host and port correctly. Due to security reasons, i did not mention them in URL. I am using Pi 7.0. I get this URL from integration directory>tools>define web service. When you make WSDL file, you can see URL there as well. There is nothing wrong with URL.

Regards

Imran

smavachee
Active Contributor
0 Kudos

Its issue with URL you are providing into configuration, it must be the URL to the WSDL.

Simply test it by putting it in browser and check whether you are able to see WSDL code.

Make sure that you are using correct User ID and Password and having proper settings of Firewall if any.

Hope it helps.!

Regards,

Sunil

Former Member
0 Kudos

Hi Imran,

Does your SOAP receiver accept any specific content type? Check this and accordingly you can set the content type using MessageTransformBean in receiver SOAP channel -> Module tab

Check this http://scn.sap.com/message/2422573#2422573

Former Member
0 Kudos

have you seen below thread:

https://scn.sap.com/thread/2120868