cancel
Showing results for 
Search instead for 
Did you mean: 

how to test webservice (wsdl)....?

Senthilprakash1
Participant
0 Kudos

Dear all,

I have Created Webservice to RFC scenario. and i have a webservice(wsdl file). also i have installed XMLSPY .

question: Need Assistance in testing my webservice in XMLSPY.

Please help me by explaining the procedure for testing the webservice in XMLSPY.

I am very New to XMLSPY.

Thank's in advance.

Edited by: senthilprakash selvaraj on Dec 19, 2007 8:37 AM

Accepted Solutions (1)

Accepted Solutions (1)

Senthilprakash1
Participant
0 Kudos

Dear all,

i am getting a new error in XMLSPY

its comming as " *HTTP ERROR:Could Not POST FILE*" "*ERROR SENDING HOST DATA*"is comming

******start**********

<?xml version="1.0"?>

<!-- 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>ModuleUnknownException</code>

<text><![CDATA[

com.sap.aii.af.mp.module.ModuleException: either no channelID specified or no channel found for the specified party, service, and channel name, MessageServlet(Version $Id: //tc/xi/NW04_15_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#2 $)

at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:380)

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

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

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

]]></text>

</s:SystemError>

</detail>

</SOAP:Fault>

</SOAP:Body>

</SOAP:Envelope>

********end********

please help.

aashish_sinha
Active Contributor
0 Kudos

Hi,

you need to check the communication channel for the specified party, or service or you are nor providing it check this out.

regards

Aashish Sinha

PS : reward points if helpful

Senthilprakash1
Participant
0 Kudos

Dear all,

The same error is still comming. I have checked my Comm channel and services they r fine.

NOTE: I tried to deploy another WSDL file of my friend. it is also showing the same problem in XMLSPY.

This WSDL file is working fine and is also implemented in the PRD server. so i guess some problem in XMLSPY. Please Advice.

Question: do we need to have any extra credentials(autherisation) for deploying webservices?

nikhil_bose
Active Contributor
0 Kudos

senthil,

tell me which step in the Pipeline shows error. even the XMLSpy sends and shows error, you have to look in the XI part.

use SXMB_MONI ( Xi Runtime Monitor) to see which pipeline arising error.

nikhil

nisarkhan_n
Active Contributor
0 Kudos

it looks like your configuration steps are not fine, recheck the configuration steps, when you delopy your WSDL fine thenonly the messages enter the XI, you should find the piplpeline steps where it is breaking and check....

Answers (8)

Answers (8)

Former Member
0 Kudos

I had the same problem. I solved it just changing soap request parameters. I changed & amp ; to just &. Hope this help

Regards

Edited by: fede groso on Jan 14, 2008 1:24 PM

Edited by: fede groso on Jan 14, 2008 1:24 PM

iprieto
Contributor
0 Kudos

Hi,

There are a very useful tool : http://www.soapui.org for testing Web Services.

Best Regards

Ivá

Senthilprakash1
Participant
0 Kudos

****

Edited by: senthilprakash selvaraj on Dec 19, 2007 12:02 PM

Senthilprakash1
Participant
0 Kudos

Dear Nikhil,

when i run wsdl file i get following error in XMLSPY. But my scenario is complete i am sure of it....! do i have to manually configure XMLSPY ports. for makeing it work properly?

****************************start********************************

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

<SOAP:Body>

<SOAP:Fault>

<faultcode>SOAP:Server</faultcode>

<faultstring>System Error</faultstring>

<detail>

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

<context/>

<code>RCVR_DETERMINATION.MESSAGE_INCOMPLETE</code>

<text>Message is incomplete. No Sender found</text>

</s:SystemError>

</detail>

</SOAP:Fault>

</SOAP:Body>

</SOAP:Envelope>

***********************stop*****************

nikhil_bose
Active Contributor
0 Kudos

read next

Edited by: Nikhil Bos on Dec 19, 2007 3:28 PM

nikhil_bose
Active Contributor
0 Kudos

hi check your adapter engine in the runtime work bench that both the adapters are running fine( at receiver and sender end).

You have to check your receiver determination and make sure that the Interface mapping is listed there.

test your Interface mapping in the IR.

there is no configuration/problem with XML Spy. Tell me what error number you are getting in the Error Dialog in the XMLSpy.

Did you Define Web Service for Sender channel?

Former Member
0 Kudos

hi..

U hv download the correct version of the ALtova XML Spy tool..

chk this link,

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

Thanks

MANas

Senthilprakash1
Participant
0 Kudos

Dear All / Nikhil,

when i run wsdl file i get following error in XMLSPY. But my scenario is complete i am sure of it....! do i have to manually configure XMLSPY ports. for makeing it work properly? why Output is not comming in XML spy?

****************************start********************************

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

<SOAP:Body>

<SOAP:Fault>

<faultcode>SOAP:Server</faultcode>

<faultstring>System Error</faultstring>

<detail>

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

<context/>

<code>RCVR_DETERMINATION.MESSAGE_INCOMPLETE</code>

<text>Message is incomplete. No Sender found</text>

</s:SystemError>

</detail>

</SOAP:Fault>

</SOAP:Body>

</SOAP:Envelope>

***********************stop*****************

aashish_sinha
Active Contributor
0 Kudos

Hi,

There is a problem with your receiver determination.check the address you are posting to and all values which determine the receiver. Check out the receiver determination once again if u are using the conditional receiver. Also check if u are using the synchronous messagin , no need for receiver determination.

you need to send to URL http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel .Inside the Adapter you ve to give the Interface and the Namespace.

other possibility is check out for the proper data in XML spy. and you need to put all the values for all fields. Test it using Runtime workbench.

Also check out if xml spy able to replace the & to just &. or special character.

Hope this will help you.

regards

Aashish Sinha

PS : reward points if helpful

Edited by: Aashish Sinha on Dec 19, 2007 10:13 AM

Former Member
0 Kudos

hi..

when u define web service in the configuration part check whether u give the correct ULR for the integration server SOAP inbound channel.

E G:

for PARTY config:

http://host:port/XISOAPAdapter/MessageServlet?channel=<party17>:<BS_soap_send>:<channel>;

if there is no party config:

http://host:port/XISOAPAdapter/MessageServlet?channel=:<service>:<channel>;

give ur service name and channel name

THAnks

MANas

nikhil_bose
Active Contributor
0 Kudos

go to soap menu ->> create/new soap message

browse your wsdl file

the wsdl opens with the request. put the parameter values correctly(valid values) and choose send message to server from SOAP menu. if all things are correct, it shows result. else shows message dialog box and error reply.

Former Member
0 Kudos

Refer this blog section Testing, it will tell you how to send the SOAP message to XI using XML spy:-)

Thanks

Farooq.