Synchronous messages through Soap Adapter
Hi XI Guru's
In my scenario I am sending a synchronous soap message over soap adapter. Message flow is like
3rd Party Application --> XI --> SAP R/3.
My message do get processed in SAP R/3 and I do get response in SXMB_MONI as well as in Message Monitoring in RWB.
The return message for message f1bdf1d0-cec5-11de-a9c0-0050569626f6(OUTBOUND) was successfully passed to the waiting "call" thread.
2009-11-11 05:27:26 Information The message status was set to DLVD.
2009-11-11 05:27:26 Information SOAP: response message entering the adapter (call)
2009-11-11 05:27:26 Information SOAP: response message leaving the adapter
But still the response from XI does not reaches 3rd party application.
On digging the logs I found following message. Can this be an issue in XI which is blocking the reponse message from reaching the 3rd Party Application.( I tried posting the message through XML spy and I do get the response in XML spy.)
(Note : My XI Installation has central adapter engine)
#1.5 #0050569626F6004200000D0B00000B5000F66675B4B8DEA5#1257401122698#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/com.sap.aii.adapter.soap.app#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#LOVEIN#25369##sapnw03_NPI_6935550#Guest#2fd59d51c9d111debb440050569626f6#HTTP Worker [4]##0#0#Warning##Plain###Cannot send an HTTP error response [500 "Application error occurred during the request procession." (details: "The WebApplicationException log ID is [0050569626F6004200000D0800000B5000F66675B4B8DEA5].")]. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: *The stream is closed.*
+ at com.sap.engine.services.servlets_jsp.server.runtime.client.ServletOutputStreamImpl.ensureOpen(ServletOutputStreamImpl.java:354)+
Any help in this regard is appreciated .
Thanks
Lovein
Thanks for your reply Stephan / Abhishek.
To add some more info on the issue. This issue is when I am using PI 7.1 version.
I do not face the issue if I use XI 3.0 and end to end flow works fine and response message reaches 3rd party application.
Only difference I have in 2 versions is that in XI 3.0 we have been able to disable the soap adapter authentication (by changing web.xml file) where as in PI 7.1 we have not been able to disable that authentication and userid/ password info has to be provided while sending the soap message from 3rd Party application.
(Security if not disabled gives 401 message as described on following blog [SOAP Sender ADAPTER 401 No Authorisation|SOAP Sender ADAPTER 401 No Authorisation] )
On the other note do you guys know a way to disable this authentication on PI 7.1 version.
Thanks ,
Lovein
Similar Messages
-
Synchronous messages for SOAP adapter.
Hi All,
I wanna expose an interface in XI as a WebService.My requirement is to invoke a webservice which takes some input and hands it over to a DataBase and gets something from it(DB) and hands it over to the application which had called this WebService.Both the request and response have to go and come through the WebService.Is it possible to design an Outbound Intf in Synchronoues mode with both the input and output messages types and expose that Intf as a WebService.
Clarification and help on this wud b appreciated.
Thanx in Advance.
Anil Kumar VeepuriHi Anil,
You can definitely make an outbound Interface as a webservice.For this create two message
types(Request & Response) and make a synchoronous Message Interface out of it.This will be
our Outbound Interface. You will Definitely have JDBC Request and response.
Map the outbound Resquest type-> JDBC Request.
JDBC Response->Outbound Response.
Go to Tools->Define Web service, mention the Outbound Interface you have created.Now you save the WSDL created out of it and make a call to this interface through the SOAP Adapter.
Cheers,
Rashmi -
Exception while posting a message using SOAP adapter
Hi
We are getting the following message while posting a SOAP request through SOAP adapter through Http Client. The error message is
<SAP:Error>
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code>MESSAGE.GENERAL</SAP:Code>
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText>
</SAP:Error>
Please help in this regard.
Regards
RameshDear Gopal,
I am trying from HTTP->WEB SERvice (R/3 system)
I have created a webservice from RFC.
Receiver Adapter type : SOAP
USer authentification provided
URL provided. i picked from wsdl file
i am getting this error
com.sap.aii.af.ra.ms.api.DeliveryException : invalid content text/html.
I hope u trouble shooted this kind of error.
can u provide me some clues.
regards
chandra
Message was edited by:
chandra shekar dasari -
Connection issue between Data service(DQ) to PI through SOAP adapter.
Hi Guys,
We are trying to connect the data services(DQ) with SAP PI through SOAP adapter. I provided the wsdl file to data services team and they are trying to send messages to PI. Looks like the messages are showing successful in there system, but not showing up in PI system.
I tried the same file using xmlspy and PI receiving the messages from XMLSPY. We are wondering whats going wrong?
Any idea about this data services system? Is there any other better way to receive messages to PI apart from webservices?
PS: Connection is working fine from PI to DQ thorugh SOAP adapter.
Thanks
Deepthi.>>>> We are trying to connect the data services(DQ) with SAP PI through SOAP adapter. I provided the wsdl file to data services team and they are trying to send messages to PI. Looks like the messages are showing successful in there system, but not showing up in PI system.
You are using soap sender adapter ... Hosting webservices and DQ team is able to access your webservice. Also using XMLSPY you are able to see pi messages.
If you are using advance adapter engine, Please check only in the RWB -> adapter engine.
If you are not using AAE, check in both SXMB_MONI and RWB for the wide range... Something problem with filter query in your checking...
Note since XMLSPY testing goes through Pi and able to monitor means you dont need another webservice client tool.
Solution:
use tcp monitor to monitor the soap message ... It is better option
/people/stefan.grube/blog/2007/03/29/troubleshooting-soap-http-and-mail-adapter-scenarios-with-tcpgateway -
Processing compressed message through MQ Adapter
Hi,
In oracle MQ Adapter documentation I do not see any support for processing compressed messages through MQ adapter.
Is there any other way by which I can process compressed messages through MQ Adapter. I have CCDT(client channel definition table ) file saved at server location.
We are using 11.1.1.5 SOA server.
Thanks,
Ashuyou should ask this in XI forum
Process Integration (PI) & SOA Middleware
Regards
Raja -
Reading huge flat file through SOAP adapter
Hi Everybody,
In one of our interface we need to read big flat file using soap adapter at sender side into xi and we are using java map to convert into xml. but before that i need to split this flat file into multiple files in the first message mapping. and in the second map we have to write a java map to do the flat file conversion to XMLBut i got struck up in reading this big flat file into XI as i need to declare some datatype to read this entire file. Can anybody tell me how i can do this. is it a possible to do first of all with SOAP adapter .
Thanks
rajhi vijay,
Thanks for your prompt reply. Due to some reasons i am not allowed to use file adapter . i can use only JMS adapter or SOAP adapter. we tried few scenarios with JMS content conversion but what ever scenario i am asking here is complex at multilevel i can't even use JMS in this case. so we are thinking to read whole file using SOAP adapter and then we are planning to split the file into multiple files, as file can be huge size ,using java mapping and in next level we want to use another mapping to do content conversion. SO I have to do experiements whether this is a feasible solution or not. because when u declare at sender side
<ffdata_MT>
<Recordset>
<ROW> String type
when u declare like this and when u sent the flat file using SOAP adapter at sender side we are getting whole file which we sent at part of "ROW" as string. but inside java mapping i need to see whenther i can split this in XI ,so that i can use these split files in next mapping for content conversion. Hope i am clear now. I want to know whether it is a feasible solution or not.
I really appreciate if sombody give some idea on this
Thanks
raj -
How to save the Response message from SOAP adapter
Dear Friends,
I am sending the FIle details webserver.here sender is FILE adapter and receiver is SOAP adapter.
FIle to SOAP working successfully, but I need response from SOAP.
Sender QoS is BE, so the response is coming to XI, but in SXMB_MONI it is showing DO YOU WANT TO SAVE IT or DISPLAY IT.
my requirement is response message is directly updated in XI system.
For response Can I use BPM or which method I need to use.
Please suggest me how to do the resonse message(SOAP to FILE).
Regards,
Shalini Shah.Sender QoS is BE,
File adapter does not support sync communication. Therefore the scenario won't work as it is.
What are you planning to do with the response? If you want to process is further, then:
1. One way without BPM would be use of adapter module.
File - RFC - File without a BPM - Possible from SP 19.
2. Or you may use BPM with Async Sync bridge
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Regards,
Prateek -
Multiple message through FIle Adapter using XI 2.0
I have scenario to create multiple message using File adapter .My file structure will be like
EMPID NAME SKILLS
001 A ABAP
001 A XI
002 B JAVA
Now I want to post first 2 records in one message and last record in other message.
Can we do it in XI 2.0.Any help appreciatedHi Suraj.
Thank you very mutch for your reply.
Excuse me...my mapping is done for message type and idoc.
My problem is that when the interface start, on the sxmb_moni I see an error like this:
Creating Java mapping com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- Using MappingResolver with context URL //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e/ --- Load of com/sap/xi/tf/_MM_XmlOrderToIdocMapping_.class from //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e failed. --- Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- java.lang.ClassNotFoundException at RUMappingJava.load(): Could not load class: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- com.sap.aii.ibrun.server.map.MappingRuntimeException: at com.sap.aii.ibrun.server.map.MappingRuntimeException.code_STYLESHEET_OR_CLASS_NOT_FOUND
..where 'gestione_magazzini' is my namespace and 'MM_XmlOrderToIdocMapping' is my message mapping.
Can you help me to undestand the problem?
Thanks,
Gianluca -
Webservice call to XI Interface through SOAP Adapter from a Web application
I am getting the following error, when I try to call the XI Interface using soap adapter from a web application.
ERROR :
SystemError:
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text><![CDATA[
com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException
at some time i am getting the following error.
faultCode: HTTP
faultSubcode:
faultString: (500)Internal Server Error
faultActor:
faultNode:
faultDetail:
{}:return code: 500
<SAP:Error><SAP:Category>XIServer</SAP:Category><SAP:Code>RCVR_DETERMINATION.NO_RECEIVER_CASE_BE</SAP:Code><SAP:Stack>No receiver could be determined</SAP:Stack></SAP:Error>
HttpErrorCode:500
(500)Internal Server Error
can any of one help to resolve this.
Thanks in advanceGanie
You are getting the exception at very first point of Pipeline Service i.e Receiver Determination, do compare the namespace, Sender Interface Name & Sender Service name with the payload you are sending from web-application, they must be exactly same.
The best way to get the test payload is suggested in above reply. -
File adapter sends return message to SOAP adapter
Hi,
I have managed to send a message using a SOAP sender adapter to a file using the file adapter. The respective message is written to a file. Though both adapters are configured to work in an asynchronous way, the file adapter seems to try to return as message. This results in an error message: "Das Interface-Mapping ... ist nicht im Laufzeit-Cache vorhanden". I have updated and checked the runtime cache. The respective mapping program is available and working, since the file adapter writes the send date to the file. So why this message?
Kind regards,
HeikoThe file adapter replies the sent message, when it is addressed in sync mode.
Set in the SOAP sender channel the Quality-of-Service to Exactly-Once to avoid this behavior.
Regards
Stefan -
Error while connecting to external server through SOAP/HTTP adapter
Hi,
we are trying to connect to the external server through SOAP adapter. The scenario is proxy to SOAP asynchronous scenario.
We are getting following error in Communication channel monitoring:
*Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault*
We also tried HTTP adapter in the receiver side. But it is giving red flag in SXMB_MONI with following error:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
<SAP:P1>500</SAP:P1>
<SAP:P2>Internal Server Error</SAP:P2>
<SAP:P3>Internal Server Error</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>HTTP server code 500 reason Internal Server Error explanation Internal Server Error</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Please help.
Thanks in advance.
Regards,
sriparnaMake sure that the receiver webservice is up and running and in a state to receive the external calls. Confirm if the data you send is as per the requirement of the webservice and they haven't changed anything at their end.
Regards,
Prateek -
Special characters in sender soap adapter provoke HTTP 500 error
Hi,
SAP R3 is sending a SOAP message to PI through SOAP adapter.
When the payload does NOT contain german characters like ü, it works fine.
However, when the payload DOES contain special characters, the SOAP adapter replies with an HTTP 500 code error.
If I use SoapUI to send the soap message, and setting UTF-8 as the encoding in the program options, it will go through fine. If I change to ISO-8859-1 it will fail.
I'm thinking in two options:
- Make sure that SAP R3 sends the message in UTF-8 format (I think this is happening currently), as if SoapUI works, then probably R3 is not using UTF-8.
- Force the adapter to use UTF-8. Is this possible? In the sender SOAP adapter I've added AF_Modules/MessageTransformBean (type local EB), and then Transform.ContentType for parameter name and --> text/plain;charset=utf-8 for parameter value. The sender adapter will fail then for every message, with or without special characters.
Anyway, in this link (http://help.sap.com/saphelp_nwpi71/helpdata/EN/a4/f13341771b4c0de10000000a1550b0/frameset.htm) it seems to say that the sender soap adapter cannot be extended with modules, so maybe that's the reason why it fails when trying to add a module.
ThanksIf I use SoapUI to send the soap message, and setting UTF-8 as the encoding in the program options, it will go through fine. If I change to ISO-8859-1 it will fail.
I'm thinking in two options:
Check the use of option 1 ..... the URL which SAP is using to send the data can containe the encoding information.
Check this SAP note: https://service.sap.com/sap/support/notes/856597
From the above note:
Q: What character encoding is supported by the SOAP sender adapter?
+you can supply the encoding information with the xmlenc variable in the request URL as in+
Regards,
Abhishek. -
Special Characters issue---u00FA ,u00A3---- in Reciver SOAP Adapter
Hi ,
I am facing issues with Spceial Characters ú ,£ at the reciver SOAP adapter ,the messages was stuk in XI with to the following error :An invalid character was found in text content. Error processing resource
I tried in several ways buy using XMBWS.XMLEncoding=iso-8859-1,
but it was not resloved still I am getting the same error,
Any one plz suggest me how to resolve this issue....
Regards,
Teja.Hi ,
My scenario is RFC--SOAP ,the messages was successfully rached to RFC adapter and I am facing the issue at the receiver SOAP Adapter ......
I am getting error messages such as :
1) 400 Bad Request
2) In the XML Payload ......It is showing as Invalid Character found ....
For this I tried ...
1) In the source payload XML I done the chages in the encodding part
encoding part as iso-8859-1instead of utf-8.
2) I have triggered the message from Integration Engine ....then it was successfully processed through SOAP Adapter
3) with special characters...means there is no issue at target end.
4) the issue lies in XI so we have to resolve it.
I tried by using Adapter paramters which was provided by SAP but the result is same..
so the paramters which was provided by SAP are incorrect(for encoding)
Please help me in resolving this issue .........
Regards,
Teja. -
We are getting the data from sql server into PI through Soap adapter.
Till day before yesterday everything is running fine .But now it has started giving us the below error.
there were no changes done in the interface.
I am not able to see any error in the runtime workbench ,communication channel monitoring, message monitoring.
This below error is giving in sql server.
Can any PI expert explain or provide me a solution to solve this issue.
Msg 6522, Level 16, State 1, Procedure sp_PI_WS_Backflush_Production_V2, Line 0
A .NET Framework error occurred during execution of user-defined routine or aggregate "sp_PI_WS_Backflush_Production_V2":
System.Net.WebException: The operation has timed out
System.Net.WebException:
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at PI_WS_Backflush_Production_V2.Backflush_OB_Sync_SIService.Backflush_OB_Sync_SI(BackflushRequest_DT BackflushRequest_MT)
at PI_WS_Backflush_Production_V2.StoredProcedures.Backflush_Production_V2(String PalletNumber, String StockKeepingUnit, String ProductionPlant, String BatchNumber, DateTime ProductionDate, String Quantity, String UnitOfMeasure, String Destination, String& uState, String SAPUser, String SAPPassword)Time out issue could be due to the long running process in your SQL server. please check the SQL server for its performance and also check the number of http worker threads on the SQL server side where the SOAP adapter makes the call and get the request back.
-
SOAP adapter in gray color?
Hi guys,
When I go to RWB > Component Monitoring > Adapter engine > Adapter monitoring. I see all the adapters and my SOAP adapter appears in gray!
In ID when I try to create a test channel it appears available.
Anybody knows why it appears in gray?
Thnaks in advance,
Ricardo.Hi,
untill you send the first message through this adapter is stays grey
but it's ok
when you send a first message it changes it's colour
Regards,
michal
Maybe you are looking for
-
Sales order reference at the time of Production Planning
Hi all, Is there any Hard check (or) Validation at the time of assigning sales order in Production order? to be more specific At the time of creating production plann, we assign open sales order to that. Again if new production plan is created and w
-
PS General SQL Routines: Missing or invalid version of SQL library libpsora
Hi Everyone, Need your assistance. Perhaps someone of you encountered this already. I have completed setting up everything until the application server part. If I try to boot the application server I get the error below. I have tried several solution
-
How to make a call in j2me using bluetooth technology?
Hi All, I wanted to make a call to another device which is in my bluetooth range i wanted to know how to make such a call?And i have heard that using bluetooth for making calls we can only do half duplex communication that is at a time only one perso
-
Every now and then when trying to export an MP4 movie, the rendered file is corrupt and file size is 0 KB. Sometimes when this problem occurs, but not always, I also get a warning message saying "File importer detected an inconsistency in the file st
-
Add space between set of Symbols - Grep Question
hi everyone, I have another Grep question someone hopefully can help with. I need to find the following symbols in my long document < > + = All these symbols need space either side of the character. I would like to setup a grep expression and h