cancel
Showing results for 
Search instead for 
Did you mean: 

soap to rfc error when testing through xml spy

Former Member
0 Kudos

Dear All,

I have a scenario soap-to-rfc.I have created a WSDL using the url as :

http://<myhost>:<port>/XISOAPAdapter/MessageServlet?channel=:BS_Legacy:CC_SOAP_Sender

I am getting an error as mentioned below when i tried to test it throug altova xml spy.

HTTP error: could not POSt file '/XISOAPAdapter/MessageServlet?channel=:BS_Legacy:CC_SOAP_Sender' on server 'host:port' (407).

I have gone through all the related threads which are already there in forum but still couldn't find what's going wrong.

I modified soap:address tag in wsdl

<soap:address location="http://covmdvpi01.mhril.com:50000/XISOAPAdapter/MessageServlet?channel=:BS_Legacy:CC_SOAP_Sender"

Please suggest.

Regards

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use this URL in soapui and check what you get.... I think you did not create WSDL properly.

if you use 7.1 version, go to sender agreement and click display wsdl and save the file

URL format:

http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel

where service - sender business component

channel - sender communication channel

host - hostname

port - 50000 or 500001 (depends on whether you use http or https)

what is the quality of service you have to use in your soap sender communication channel if it is asyn use EO or if it is syn you have to use BE.

regards,

ganesh.

Former Member
0 Kudos

Hi ,

Thanx for quick reply.

I am using 7.3 and created wsdl in ID>Tools->Disply wsdl

my sender business system : BS_Legacy

sender channel : CC_SOAP_Sender

my url

http://<host>:50000/XISOAPAdapter/MessageServlet?channel=:BS_Legacy:CC_SOAP_Sender

i have given my host name in the place of host.

my scenario is synchronous and given qos as BE.

Use this URL in soapui and check what you get...do u mean that u want me to test using soap ui?

if so i have tested it in soapui also

new soap ui project-->project name and Initial wsdl/wadl(i have selected wsdl file from system location where i saved it) ...created...given input parmeters then i clicked on Submit Request to Endpoint URL button.

still couln'd see response.

you can see below response what i've got in soapui

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>

<title>Error Report</title>

<style>

td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}

A:link

A:visited

A:active

</style>

</head>

<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">

<table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">

<tr bgcolor="#FFFFFF">

<td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>&nbsp;&nbsp;401 &nbsp; Unauthorized</b></font></td>

</tr>

<tr bgcolor="#3F73A3">

<td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>

<td height="23"><img width=1 height=1 border=0 alt=""></td>

<td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP NetWeaver Application Server&nbsp;</b></font></td>

</tr>

<tr bgcolor="#9DCDFD">

<td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>

</tr>

</table>

<br><br><br><br><br><br>

<p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>&nbsp;&nbsp;Error: Unauthorized</b></font></p>

<p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>&nbsp;&nbsp;<a href="https://wiki.sdn.sap.com/wiki/x/wIN3Cw">SAP Technology Troubleshooting Guide</a></b></font></p>

<p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table>

<tr>

<td valign="top"><b>&nbsp;Details:</b></td>

<td valign="top"><PRE>No details available.</PRE></td>

</tr>

</table></font></p>

</body>

</html>

Thanks

Kumar

Former Member
0 Kudos

HI,

401 is usually either with the user name and pwd only. Please recheck them and also while testing it with SOAP UI on the left side you need to give the username and pwd. the user should have the same role as XIAPPLUSER / PIAPPLUSER

Specific role will be xi_adapter_soap_message

regards,

ganesh.

Former Member
0 Kudos

Hi,

Thank you.

Now i tested in soapui by providing username and password.I got the error as below

<!see the documentation>

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP:Body>

<SOAP:Fault>

<faultcode>SOAP:Server</faultcode>

<faultstring>Server Error</faultstring>

<detail>

<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">

<context>XIAdapter</context>

<code>ADAPTER.JAVA_EXCEPTION</code>

<text>com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve binding for the given channelId: Binding:CID=null;

at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBindingByChannelId(AbstractLookupManager.java:173)

at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:379)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)

at com.sap.engine.services.servlets_jsp.server.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:126)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)

at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)

at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)

at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)</text>

</s:SystemError>

</detail>

</SOAP:Fault>

</SOAP:Body>

</SOAP:Envelope>

Thanks

Kumar

Edited by: kumar.sappi on Jan 4, 2012 11:29 AM

Former Member
0 Kudos

Hi,

The above error occurs when either proper ID objects are not maintained (or maintained with incorrect/ insufficient data) OR when the cache is not properly updated......try making some dummy changes to the ID objects and again activate (check the Cache Status Overview to confirm that activation is successful) and then again test the scenario.

Also try testing the scenario from some other tool like SAP SOAP Client (or even RWB --> Integrartion Engine --> Test Message), this is to confirm that at least all the objects are in place.

regards,

ganesh.

Former Member
0 Kudos

Hi,

Thanks,

I have tested the configuration in id, i did not find any errors.I have tested through RWB->Integration Engine>Test Message

successfull and response message i can see in moni in pi.

And i tested through RWB->Adapter Engine->Test Message

am getting an error as below

While Sending Message: Additional error text from response: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=BS_Legacy;TS=;AN=SI_SOAP_Out_Sync;ANS=http://mhril.soaptorfc; in the current context [Unknown].

Thanks

Kumar

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Reactivate all the configuration objects once again and do the test in the configuration tool first. Looks like it has issue in identifying the reciever agreement. Nothing problem in creating WSDL. Refresh cpa cache too. Make sure you have receiver agreement that reference the right communication channel for the reciever.

Answers (2)

Answers (2)

former_member184681
Active Contributor
0 Kudos

Hi,

I have also experienced problems when I generated the .wsdl file the way you mentioned. Try doing it a little bit differently: find the Sender Agreement for your scenario in XI's Integration Builder, right-click on it and select "Display WSDL...", then save the .wsdl file from there. You should notice that the file is way different from what you had before. Also, the soap:address tag should already be correct, so do not modify it this time.

After importing that particular file to XML Spy, you should be able to test your connection.

Regards,

Grzegorz

rajasekhar_reddy14
Active Contributor
0 Kudos

refer below my blog.