on 12-28-2005 12:06 PM
Hi All,
I had configured webservice -> XI -> Webservice scenario.
I had done everything properly as it is given in the help.sap.com. but when i tried to execute the scenario using Stylus Studio(Sending SOAP Req), i got the following error.
System.Net.WebException: The remote server returned an error:(401)Unauthorized.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndResponse(IAsyncResult asyncResult)
at at System.Net.HttpWebRequest.GetResponse()
at WebServiceClient.Send()
at _send(IWebServiceHost*pWebServiceHost)
at send(IWebServiceHost*pWebServiceHost)
Can anyone help me out in this regard.
Thnx
Anil
Hi Anil,
Has your problem solved?
Kindly let me know if you found a solution.
Thanks
Regards,
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
Your problem is Failed to open socket. This is basically due to proxy setting. You change the proxy settin of your SOAP client as your ip address. For this you click on view then click on settings and fill the http proxy and port what u are using.
This will solve your problem.
Regards
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
I had changed my settings as follows
ProxyHost : myIPaddress
port : 8020
user : xiappluser
password : pwd
but after sending the request, i got the following error.
com.sap.uddi.generic.impl.soap.NativeSOAPException : Server returned: 401 Unauthorized
=== START OF RESPONSE DUMP ===
HTTP/1.1 401 Unauthorized
connection: close
www-authenticate: Basic realm="XISOAPApps"
pragma: no-cache
cache-control: no-cache
expires: 0
content-type: text/html
content-length: 1775
server: SAP J2EE Engine/6.40
date: Thu, 29 Dec 2005 09:56:09 GMT
<!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> 401   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 J2EE Engine/6.40 </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>
<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="3" color="#000000"><b> Access Denied.</b></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b> Details:</b></font></td>
<td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre> No details available</pre></font></td>
</tr>
</body>
</html>
=== END OF RESPONSE DUMP ===
I also tried with XISUPER..but i'm getting the same error.
Any help is appreciated.
thnx
anil
Hi Anil,
While providing proxy settings, you have to give the username and password through which you access internet from your desktop (i.e mail proxy password).
<b>OR</b>
If your machine and XI server are in same lan ie inside firewall
what you can do is in Browser settings tools> internet options-> connections> lansettings click bypass proxy server for local address and put the ip address of ur XI server in local addresses list..(Advanced option)
You are getting unauthorised error because it is expecting the mail proxy username and password.
Hope it works
Yomesh
Hi Naveen,
I hav done the same thing and i got the following message
Message Servlet is in Status OK
Status information:
Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/aii/30_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#10 $) 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
ModuleProcessorRemote not instantiated
Wot cud b the solution for this...:-(
Hi,
Hi this error may occur due to the authorization problem.
in your recceiver commmunication channel, while configuring the SOAP adapter, check the check box that says authorization and give the username and password. this might solve the problem.
You can also use the SOAP client provided by SAP in this link
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/2fad3a59-0501-0010-7a92-dc43cd1cdf... [original link is broken]
this SOAP client was very easy to use.
Regards,
P.Venkataramanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
My Scenario is something like this.
I had a java program(calculator) exposed as webservice. I have two synchronous interfaces,one sender(Req_MI) and two the receiver(Res_MI). I followed the steps that are given in the blog. I had cofigured one SOAP_Sender and one SOAP_Receiver.I had given the 'xiappluser' authentication in the SOAP Receiver. When I had defined the WebService using the option 'Define WebService' in the tools menu option of the Configuration, I had followed thes steps.
In the URL,i had given http://MyHost:51100/XISOAPAdapter/MessageServlet?channel=:XI_Webservice:SOAP_Sender
(51100 is the port where my Calculator webservice resides, XI_Webservice is my Sender Service)
In the Specify Interface step, i had given the following(Req_MI)
Req_MI
In the Specify Sender step, i had given the following
Service : XI_Webservice
Interface Name : Req_MI
Interface Namespace : http://MyOrg.com/file
I Used the SAP Soap client tool. The soap request which I generated from the WSDL from the Configuration is as follows:
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<p1:Req_MT xmlns:p1="http://MyOrg.com/file">
<p1:Request>
<p1:Arg1>2</p1:Arg1>
<p1:Arg2>2</p1:Arg2>
</p1:Request>
</p1:Req_MT>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
When I had sent this request, i got the following error as response.
Failed to parse soap message
Original(raw) message:
com.sap.uddi.generic.impl.soap.NativeSOAPException : Failed to open socket
Cause : class java.net.UnknownHostException : proxy
Can any one please look into this.
Thnx in Advance.
Anil.
Hi Anil,
As you mentioned.
When I had sent this request, i got the following error as response.
Failed to parse soap message
Original(raw) message:
com.sap.uddi.generic.impl.soap.NativeSOAPException : Failed to open socket
Cause : class java.net.UnknownHostException : proxy
When you are sending this request from the SOAP Client you have to do the following:
Step 1.
SOAP Client:
Target URL : http://<IP address of your host>:<PORT number of your host>/XISOAPAdapter/MessageServlet?channel=:<Sender SOAP Business service>:<Sender SOAP Communication channel>.
Step 2.
Load request from : Load your xml file
Step 3.
Go to View --> Settings
A.) Under http proxy settings keep
Proxy host --- <Blank> because same you filled in target URL
Port --- <Blank> because same you filled in target URL
B.) Under HTTP Header Check the option use HTTP Basic auth. and fill
User --- <your user id> same user id by which you login to host.
Password --- <your password> same password by which you login to host.
Rest all, leave as it is and press ok.
Now send the request.
It will not give you the above mentioned error.
Regards,
Alok
Hi Anil,
Check the username and password which you are using. Try using xisuper username.
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.