cancel
Showing results for 
Search instead for 
Did you mean: 

Testing with Altova XML Spy : SOAP->XI->RFC->SOAP

Former Member
0 Kudos

Hi,

In SOAP->XI->RFC->SOAP scenario

After above configuration I generated WDSL from Tools-> Define web services.

I Override the default URL with following while generating WSDL using web service wizard with-> "http://host:port/XISOAPAdapter/MessageServlet?channel=:<service>:<channel>"

host -XI server IP

port -8042

<service> -Message interface(Out, Syn) Name

<channel> -SOAP Sender communication channel name

Then in Altera XML Spy i "Create a new SOAP Request".

then When i am trying clicked on "Send request to server"

I am getting following error:

"HTTP error: could not POST file '/XISOAPAdapter/MessageServelet?channel-:MI_SOAPFMTEST:SOAP_SENDER' on server 'sapr3001.bently.com'(404)."

Any Help? Why I am getting above error while sending SOAP message with Altova XML Spy

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Umesh,

Generally as you know 404 - is notfound error. as Jesse pointed out there are some errors in the URL etc.

please check the following blog that gives you a idea of deploying and accessing a webservice.

I also used several times xmlspy. Please make sure that the URL you are calling when making SOAP request the one you are looking are same. You can check that in the content of wsdl.

/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi

Best regards

Vara

[Please award points for postings]

Former Member
0 Kudos

Hi,

You all are correct My URL was wrong, Now i am using following URL

http://sapr3001:54200/XISOAPAdapter/MessageServlet?channel=:X42:SOAP_SENDER

X42 - Business System Name for XI

SOAP_SENDER - SOAP communication channel name

Now after uploading WSDL in XML Spy, When i am trying clicked on "Send request to server" it is asking XI login ID & Password, Then it is throwing following error:

"HTTP error: could not POST file '/XISOAPAdapter/MessageServlet?channel=:X42:SOAP_SENDER' on server 'sapr3001'(500)."

Also when i am trying to opening URL

"http://sapr3001:54200/XISOAPAdapter/MessageServlet?channel=:X42:SOAP_SENDER" in internet explorer i am getting following error:

Message Servlet is in Status ERROR

Status information:

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

Classname ModuleProcessor: null

Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean

Lookupname for remoteModuleProcessorLookupName: null

ModuleProcessorClass not instantiated

ModuleProcessorLocal not instantiated

ModuleProcessorRemote not instantiated

Is still i am wrong with URL or Web-service in XI generated wrongly? Any guess?

Regards

Former Member
0 Kudos

Hi,

Now Error code is "500", Is this is due to Authorization Error? Any guess?

Regards

moorthy
Active Contributor
0 Kudos

Hi

<i>Now Error code is "500", Is this is due to Authorization Error</i>

>>It is intenal Server Error.

Check the given SAP note-Question no 1..

REgards,

Moorthy

Former Member
0 Kudos

Could you check the URL you are reaching manually using ur browser to check the status? : You should see some thinglike Message Servlet : OK .

I went through the same issues earlier.

Vara

[Please award points for posting]

Former Member
0 Kudos

Hi Umesh,

Your URL looks correct. I remember initially getting this error when testing from XMLSpy. I think it's an authorization error.

Setup the XI user as a 'Service' user and make sure it has the correct permissions.

Also, goto SOAP->Change SOAP Request Parameters and make sure that the 'Connection Endpoint' and 'SOAPAction' are set. The SOAPAction should be set to 'http://sap.com/xi/WebService/soap1.1'.

You shouldn't have to set these since they're in the WSDL, but sometime the SOAPAction doesn't get set. This is an bug with XMLSpy and not an issue with your WSDL.

Thanks,

Jesse

Answers (2)

Answers (2)

moorthy
Active Contributor
0 Kudos

Hi Umesh,

Refer this SAP note - 856597 Question No.1

Also make sure that port is correct one..

Also check this-

/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services

Regards,

Moorthy

Former Member
0 Kudos

Hi Umesh,

The following things don't look correct with the URL:

1) The port should be 5<System Number>00 so probably 50000.

2) In the error message 'MessageServlet' is mispelled so you may have it incorrect in the URL

3) In the error message there's a "-" after the channel when there should be an "=" so you may have it incorrect in the URL

Thanks,

Jesse

Former Member
0 Kudos

One more:

4) The service should be the name of the business service, not the interface name.

Thanks,

Jesse