cancel
Showing results for 
Search instead for 
Did you mean: 

error in testing web services

Former Member
0 Kudos

Hi,

I have created a web service using XI( by exposing an outbound interface. When seeing the target url in web browser, I'm getting the following text --->

<b>Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/NW04S_06_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#3 $) 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</b>

And when I'm trying to test this service through XML SPY.

I'm getting the following error--->

<b>HTTP: could not POST file /XISOAPAdapter/MessageServlet?%20channel=FileSenderService:SOAPAdapter on the server 192.168.100.5(500)</b>

<b>Error ion sending SOAPdata</b>

Can somebody help me out?

Regards,

Piyush

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Do you put the right paramenters regarding the sender name and communicational channell name in the URL ?

or your left: ?%20channel=FileSenderService:SOAPAdapter ?

Regards,

Sandro

Former Member
0 Kudos

Hi Sandro,

I'm putting the complete URL.

How to trace out the problem as my web service is asynchronous, So SOAP response is not there..

Piyush

bhavesh_kantilal
Active Contributor
0 Kudos

Piyush,

Log on to XI and see if the message has hit the SOAP adapter in the RunTimeWorkBench and see the status .

Also see if there is an entry in the SXMB_MONI.

To me it looks like an authorization issue and I think the user id does not have the required authorizations.

Regards,

Bhavesh

Former Member
0 Kudos

Even with asincronous message you must to get the status 200 as response.

Please try the url:

http://<server>:<java port>/XISOAPAdapter/MessageServlet

You should get the message:

"Message Servlet is in Status OK"

Former Member
0 Kudos

Hi Sandro,

It is showing OK

But when testing through XML SPY it is giving some error.

Piyush

Former Member
0 Kudos

Do you use the same user as in XMLSpy ?

Do yuo use some strange char in the name of the adapter ?

If it´s so, the chars must to be encoded for HTTP

Former Member
0 Kudos

Hi Bhavesh,

There is no entry either in workbench or with SXMB_moni regarding this.

Piyush

Former Member
0 Kudos

Hi Bhavesh,

I've checked , the user is in the role SAP_XI_APPL_SERV_USER.

Any other reason why it is not working?

Piyush

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Try adding the role SAP_J2EE_ADMIN and SAP_XI_ADMINISTRATOR_J2EE to the user and then try posting the message.

Also, if still no sucess use the URL shown in this blog to create the WSDL and your message will reach / hit the Integratiopn Engine directly.

/people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Is there any other way to check out the error or the cause for tghis problem?

As with the eror, I'm getting the following thing--

<i>HTTP: could not POST file /XISOAPAdapter/MessageServlet?%20channel=FileSenderService:SOAPAdapter on the server 192.168.100.5<b>(500)</b>

Error ion sending SOAPdata</i>

So what this 500 means? can we get some hint from that?

And whwn I'm able to defineweb service and view the web service in web browser with the same user, I don't think that there will be a problem related to authorization?

What is you suggestion for this?

Piyush

bhavesh_kantilal
Active Contributor
0 Kudos

Piyush,

AFAIK you get an error for 2 reasons, either the URL is incorrect or the user id has no crendentials.

><i>And whwn I'm able to defineweb service and view the web service in web browser with the same user, I don't think that there will be a problem related to authorization?</i>

Defining a webservice is different and posting / using the WSDL to send data to XI is different. When you are going to send some data to XI the authorizations needed will be greater.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Can you pleasetell me the password for user <b>xiappluser</b>

Piyush

bhavesh_kantilal
Active Contributor
0 Kudos

Piyush,

You need to ask your BASIS team / Admin for this. How can I know the password your server's XIAPPLUSER?

By default all the password is "initpass".

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

When I am trying through "xiappuser" and "initcase", it is giving me same erro rwith error code 401. what does that mean?

Piyush

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

the user id is XIAPPLUSER and not XIAPPUSER. Password please confirm with your admin team.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Sorry, I misspelt here.

That is fine but what does error code 401 mean? is it related to authorization?

Piyush

bhavesh_kantilal
Active Contributor
0 Kudos

yes, 401 is unauthorized user..!!

/people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

I am able to get the result if i'm using the sychorous outbound interface but it is the same error if I'm using asynchrous outbound interface.

In sxmb_moni, it is not showing if i make a call to asynchronous Web Service.

Can you please tell the possible cause as I'm getting error only in case of asynchronous interface?

Piyush

bhavesh_kantilal
Active Contributor
0 Kudos

Piyush,

Check if the user is used has the role os SAP_XI_APPL_SERV_USER.

Regards,

Bhavesh