on 09-02-2009 4:20 PM
hiii gurus,
I am trying soap to rfc scenario. i have completed all the steps.. generated the webservice . now i am testing from XMLSPY
when im sending the soap request to sender i m getting the following error.
"<?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>ADAPTER.JAVA_EXCEPTION</code>
<text><![CDATA["
"com.sap.aii.af.lib.mp.module.ModuleException: either no channelID specified or no channel found for the specified party, service, and channel name, MessageServlet(Version $Id: //tc/xpi.adapters/NW07_04_REL/src/_soap_application_web_module/webm/api/com/sap/aii/adapter/soap/web/MessageServlet.java#1 $)
The Channel has been configured correctly.. i dont know what is the problem... In some conversion i saw something like the userid which im giving should have the role as SAP_XI_APPL_SERV_USER. when i checked it not assigned .. so i assigned manually. but still the same problem exits..
please help me experts.
Regards,
Balaji
Edited by: Balaji Pichaimuthu on Sep 2, 2009 5:20 PM
Edited by: Balaji Pichaimuthu on Sep 2, 2009 5:21 PM
Hi Balaji,
It seems there is a mismatch with the payload you are sending and the payload the webservice is expecting. Try to create a test payload in message mapping test tab and try to use the same from altova also.
I see in the error as CDATA, are you using any cdata in your mapping etc. Please take a look at that.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii satheesh,
thnks for reply sathees.
But I dont get you properly.. since the scenario is SOAP to RFC,, i should create SOAP request right?. But i getting the request message from message mapping it ill be only in XML form right... will it be act as a SOAP request?? i mean can we use this simple XML payload as as SOAP request?? anyways i did the same i didnt get the output.. what do you mean by CDATA... yeah i can see the error but i dont know about CDATA..
My scenario based soap calling the BAPI BAPI_COMPANY_GETDETAIL.. so it has only one field (Company Code) in request type.
@pooja,
thanks for your reply
HI mentioned the same parameters you have mentioned....
Regards,
Balaji
Hi Balaji,
Yeap you are correct. You will create the wsdl, but while you test in altova while you are sending the request you will have your wsdl strcuture for payload which this would be your source message type strcuture. Here you can put the payload you got from test tab in message mapping. I dont think it is realated to authorization issue, because the error is not related to that. Else you might have got 401 or no authorization etc.
Regards,
---Satish
Hii satheesh,
in altova, im selection Creating SOAP Request , after that im selecting the wsdl file which is generated in ID using define web service now i got the soap request.. you mean u want to replace this soap request by xml payload of request mapping... and then i should select the send the soap request to sender. stil the same error...
Please correct me if made anything wrong in above steps.
Regards,
Balaji
in XMLSPLY
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<m:aryan_req_soap_mt xmlns:m="http://aryansoap2rfc">
<company_code>String</company_code>
</m:aryan_req_soap_mt>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
in MM
<?xml version="1.0" encoding="UTF-8"?>
<ns0:aryan_req_soap_mt xmlns:ns0="http://aryansoap2rfc">
<company_code>000001</company_code>
</ns0:aryan_req_soap_mt>
Hi Balaji,
Delete everything in xml spy and put this and give a try:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<m:aryan_req_soap_mt xmlns:m="http://aryansoap2rfc">
<company_code>000001</company_code>
</m:aryan_req_soap_mt>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Regards,
---Satish
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="aryan_soap_rfc_mi" targetNamespace="http://aryansoap2rfc" xmlns:p1="http://aryansoap2rfc" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:documentation />
- <wsdl:types>
- <xsd:schema targetNamespace="http://aryansoap2rfc" xmlns="http://aryansoap2rfc" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="aryan_req_soap_mt" type="file_req_soap_dt" />
<xsd:element name="aryan_soap_rfc_mt" type="file_res_soap_rfc_dt" />
- <xsd:complexType name="file_req_soap_dt">
- <xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/VersionID">5bf85d84978d11deab10001422b066ca</xsd:appinfo>
</xsd:annotation>
- <xsd:sequence>
<xsd:element name="company_code" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
- <xsd:complexType name="file_res_soap_rfc_dt">
- <xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/VersionID">811a2213978d11dec05a001422b066ca</xsd:appinfo>
</xsd:annotation>
- <xsd:sequence>
<xsd:element name="company_code" type="xsd:string" />
<xsd:element name="company_name" type="xsd:string" />
<xsd:element name="city" type="xsd:string" />
<xsd:element name="Country" type="xsd:string" />
<xsd:element name="Language" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="aryan_req_soap_mt">
<wsdl:documentation />
<wsdl:part name="aryan_req_soap_mt" element="p1:aryan_req_soap_mt" />
</wsdl:message>
- <wsdl:message name="aryan_soap_rfc_mt">
<wsdl:documentation />
<wsdl:part name="aryan_soap_rfc_mt" element="p1:aryan_soap_rfc_mt" />
</wsdl:message>
- <wsdl:portType name="aryan_soap_rfc_mi">
<wsdl:documentation />
- <wsdl:operation name="aryan_soap_rfc_mi">
<wsdl:input message="p1:aryan_req_soap_mt" />
<wsdl:output message="p1:aryan_soap_rfc_mt" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="aryan_soap_rfc_miBinding" type="p1:aryan_soap_rfc_mi">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
- <wsdl:operation name="aryan_soap_rfc_mi">
<soap:operation soapAction="http://sap.com/xi/WebService/soap1.1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
- <wsdl:input>
<soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="aryan_soap_rfc_miService">
- <wsdl:port name="aryan_soap_rfc_miPort" binding="p1:aryan_soap_rfc_miBinding">
<soap:address location="http://pi71server1.domain.com:50200/XISOAPAdapter/MessageServlet?channel=:aryan_3rdparty_recv_BS:aryam_soap_rfc_sender_cc&version=3.0&Sender.Service=aryan_3rdparty_recv_BS&Interface=http%3A%2F%2Faryansoap2rfc%5Earyan_soap_rfc_sender_cc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Hii im trying to post my content of my wsdl file.. but in preview mode its loook like above ... actually thats my wsdl file only.. but when post a message .. it coming like above string.
Edited by: Balaji Pichaimuthu on Sep 3, 2009 7:02 AM
Hi.
I ran into the same problem, and didn't manage to solve it propertly, but...
Using the free tool soapUI (www.eviware.com) instead of XMLSPY it worked.
Both importing the wsdl from an URL, and from wsdl file.
Don't know wht XMLSPY is behaving like that!
Hope it helped.
BR
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Balaji,
Have you created SOAP sender channel with QOS = Best Effort ? please check out.
If you have done so then try sending the same payload(taken from message ampping) using Http Client and see what you are getting.
Thanks,
Sunil Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hiii sunil,
thanks for your reply.. Yes in sender communication QOS is BE (Best Effort) only.. when i test the xml payload in http testing tool.
Im getting correct result.. But then why its not working in XMLSPY.
Regards,
Balaji
Edited by: Balaji Pichaimuthu on Sep 3, 2009 9:03 AM
Edited by: Balaji Pichaimuthu on Sep 3, 2009 9:16 AM
hi,
For fault messages in PI7.1, follow this link -
http://help.sap.com/saphelp_nwpi71/helpdata/EN/5d/a45c3cff8ca92be10000000a114084/frameset.htm
Cheers,
Divya
HI ,
What URl are you trying to use to invoke the PI service ?
Make sure that its in the below format :
From SAP help :
http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
Under party:service:channel enter the party name, the service name, and the name of the communication channel. If no party has been created, enter the following: channel=:service:channel
Pooja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.