XI Webservice scenario SOAP - RFC Call
Hi,
i have the following scenario: Request --> XI RFC-call --> R/3
XI --> Response
First I have test this scenario with the HTTP-request and it works (the result was correct). After this I changed the configuration and test the scenario with the SOAP-request. But when I try this scenario, the rfc call works also, but I get the response, that we send empty request parameter (I_EQUIPMENT).
SOAP Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
<soapenv:Header/>
<soapenv:Body>
<ns0:RFC_GET_EQUIPMENT_DATA>
<I_EQUIPMENT>xxxxx</I_EQUIPMENT>
</ns0:RFC_GET_EQUIPMENT_DATA>
</soapenv:Body>
</soapenv:Envelope>
HTTP Request:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:RFC_GET_EQUIPMENT_DATA xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
<I_EQUIPMENT>xxxxx</I_EQUIPMENT>
</ns0:RFC_GET_EQUIPMENT_DATA>
Thanks for helping,
Markus
Hi,
I hope following docs will help
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
Thanks,
Tuhin
Similar Messages
-
Webservice scenario with log services
Hi Experts,
I have to invoke two webservices. First I have to call log service and next I have to call one normal webservice.
Scenario: SOAP Client -> Call Log service -> Call normal webservice
Using log service we can send the request and response information to database. When we call the Log service it should update the request details(timestamp) to database. When we get the response from normal webservice the log service should send the response details with timestamp to database.
This is Synch scenaio so the SOAP Client should get the normal webservice's response back to the client.
How to do this scenario?
Please share your ideas.
Regards
Sarahi Sara,
As far as i think, you might have to use BPM here.
SOAP Client -
XI ==== BPM (BPM will inturn call the service and then the update in DATABASE)
Regards
Ramesh P -
ERROR During call of SOAP with a SOAP- RFC- SOAP Synchronous scenario
Hello Experts,
I've recently created a SOAP->RFC->SOAP synchronous scenario but every time I'm invoking the SOAP via XMLSpy then i will hang and send a timeout error. Also a log in XI was generated as shown below.
I hope you could help me on this one.
Runtime Errors DBIF_RSQL_SQL_ERROR
Exception CX_SY_OPEN_SQL_DB
Date and Time 28.09.2010 09:31:23
Short text
SQL error in the database when accessing a table.
What happened?
The database system detected a deadlock and avoided it by rolling back
your transaction.
What can you do?
If possible (and necessary), repeat the last database transaction in the
hope that locking the object will not result in another deadlock.
Note which actions and input led to the error.
For further help in handling the problem, contact your SAP administrator
You can use the ABAP dump analysis transaction ST22 to view and manage
termination messages, in particular for long term reference.
Note which actions and input led to the error.
For further help in handling the problem, contact your SAP administrator
You can use the ABAP dump analysis transaction ST22 to view and manage
termination messages, in particular for long term reference.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
in
procedure "DELETE_LUW_PACKET" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The database system recognized that your last operation on the database
would have led to a deadlock.
Therefore, your transaction was rolled back
to avoid this.
ORACLE always terminates any transaction that would result in deadlock.
The other transactions involved in this potential deadlock
are not affected by the termination.
Regards,
AlfredNormally such an error comes when the DB of SAP PI is full.
Contact your BASIS or ADMIN team and ask them to free the DB space.
Regards,
Abhishek. -
Payload not visible in cc monitoring for SOAP-RFC synchronous AAE scenario
Hello consultants,
I have a synchronous SOAP-RFC scenario over the AAE (Java only). When I test the service in WSNAVIGATOR the response message contains an error that results in the error message:
"<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text><![CDATA[
java.io.IOException: Parsing Error: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed." the same errror is present in communication channel monitoring for the SOAP adapter.
The status in message monitoring however is succesful.
Is it possible to check the payload for the response message of the RFC call. In CC monitoring I cannot access the payload, it is not there. It does not have to be in cc monitoring, anywhere would be fine.
Since this is an AAE scenario there are no messages in SXMB_MONI.
All tips are appreciated.
Peter JonkerHello!
Please set the "messaging.syncMessageRemover.removeBody" parameter to "false", on the SAP XI AF Messaging Service. Use the help page below for more information.
Properties Related to the Messaging System:
http://help.sap.com/saphelp_nw04s/helpdata/EN/59/25ee41c334c717e10000000a155106/frameset.htm
Best regards,
Lucas Santos -
How to call webservice via SOAP on WebAS 620
Hi,
I am working on WebAS 620 and want to call from ABAP side a Webservice via SOAP.
The webservice belongs to a third party tool and is placed on a different server.
This webservice is pretty easy (2 import parameters and 1 export).
Unfortunately it seems to me that the SOAP framework does not support such calls. It just supports calls of RFC enabled function modules. This is not what I want.
Do you know if this is possible and how I can do it?
Best regards,
Jan Hefftercheck this weblog
/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
Regards
Raja -
hi,
i am taking 2 FM's in rfc side and i am taking external definition in receiverside i.e in soap side
rfc to webservices scenario
could any one help me immediately.
urs
sumanHI
Refer this
RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
Steps
Import the RFC meta data to PI
Import the WSDL to PI
Create MI for RFC -outbound Sync (if response is involved else Async)
Create MI for WSDL service you want type Inbound Sync (If response involved)
Create MM(external definition and RFC), IM for these
Create Sender RFC adapters with SA
Create Receiver SOAP and do necessary pipline steps
Thats it
Thanks
Gaurav -
Problem in the scenario SOAP to RFC Syn
Hello All,
i developed one scenario for our client and development is same like below link.
http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-i/technology/sap/6/
when i test the interface iam getting below error, Please tell me do i need to install any patch in Xi server or do i need to implement any note.
My SAP XI server version 3.0 and Service pack:19
2010-07-19 07:24:57 Operation performed The message has been received by the mail system. Profile: XI URL: http://xxxxxxxxx:50000/MessagingSystem/receive/AFW/XI credential (User): XIISUSER
2010-07-19 07:24:57 Operation performed With the connection RFC_http: / / sap.com / xi / XI / System. Attempted placement of the message in the queue of requests.
2010-07-19 07:24:57 Operation performed Message queued dCaution
2010-07-19 07:24:57 Operation performed The message has been retrieved from the queue dCaution queries.
2010-07-19 07:24:57 Operation performed The status of the message has been activated on DLNG
2010-07-19 07:24:58 Operation performed Paper channel: CC_R_RFC
2010-07-19 07:24:58 Operation performed MP: entering
2010-07-19 07:24:58 Operation performed MP: processing local module localejbs/RfcAFBean
2010-07-19 07:24:58 Error MP: exception caught with cause com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method process.
2010-07-19 07:24:58 Error Exceptions occurred for Adapter Framework: Exception in method process.
2010-07-19 07:24:58 Error The dissemination of the message to the application via RFC_http: / / sap.com / xi / XI / System failed due to com.sap.aii.af.ra.ms.api.RecoverableException: Exception in method process.:
com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method Process .. Enabled message "Failed".
2010-07-19 07:24:58 Error The status of the message has been activated on FAIL
2010-07-19 07:24:58 Error Return of the synchronous error message to the calling application: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in method process.: Com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception method in process ..
Thanks and Regards,
Chinna
Edited by: chinnasapxi on Jul 19, 2010 10:55 AM
Edited by: chinnasapxi on Jul 19, 2010 10:56 AMHi Cinna,
>just now i checked the RFC it is working
this together with the header "Problem in the scenario SOAP to RFC Syn" is missunderstoobable. But ok, the error is inside RFC adapter: may be it cannot create the DIAG RFC call with the XML what you provided in RTW.
To be shure to have sent the right XML send a message but use a Message Mapping with RFC module as target.
Regards,
Udo -
Use Webservice instead of RFC for HR-FI Integration Scenario
Hello
there is an ALE Scenario to integrate HR and a FInance System on different servers.
This works nicely with direct RFC Calls/Connections or even with PI and RFC Adapter.
we want to use PI and Enterprise-Services/Webservices/Proxies instead of RFC (for strategic reasons), but i could not find any Standard Scenarios for this, as far as i see the name of the RFC-Functions is quite hardcoded into SAP HR.
any ideas how to do so withouth creating to much modifications in sap standard?
thanks
joergThis is a community for users of SAP Business ByDesign. Is your question related to Business ByDesign?
-
Hi experts,
Could you please show me the link which guides to create a scenario such as: request sent from SOAP client to XI server to get data from an ECC system, then the response will be sent to FTP server as file.
Thanks in advanceHi,
RFC -> XI -> WebService - A Complete Walkthrough
RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
SOAP-RFC-WEBSERVICE
SOAP-RFC-WEBSERVICE -
Hai All,
Please tell me how to do the following scenario in xi.
<b>SOAP-RFC</b>
1. sending soap request
2.Mapping soap request to rfc request
3.Mapping rfc response to a webservice request.
4. Mapping webservice response to soap response.
>>> Is it necessary to use bpm in this case... If yes, please tell me how to do this scenario in bpm.
Message was edited by:
SRI KRISHNA CHARANThanks for your reply.....,
Yes i am able to get the wsdl file as external def in IR...
But my problem is...
lets take the scenario...
<b>SOAP(Sync)-RFC(Sync)-JDBC(Sync)</b>
1. Receiving soap request.
2. Mapping soap request to rfc request.
3. Mapping rfc response to jdbc request.
4. Mapping jdbc response to soap response.
5. Sending soap response.
Please tell me how can i desing and configure this scenario.
Thanks & Regards,
Sri Krishna Charan -
How to transfer the webservice username/PW to the RFC call in PI 7.0
Hey,
I would like to transfer the username/PW, which is supplied, when a specific web service is called. The web service is supposed to be exposed on PI 7.0 and will transfer the request to a function module in ECC 6.0 via an RFC communication channel in PI 7.0. Typically, you specify the username/PW in the RFC comm. channel in PI, but how do I dynamically specify the received username/PW from the web service call in that RFC call to ECC 6.0? Maybe SAML is the answer, but it seems a bit cumbersome in my case.
BR
MikaelHi Michal
Thanks for the link. I have been looking for blogs/material on how, in a mapping in PI, to place the value of SRemoteUser in a field in the target message but without luck. Is it really the case, that I have to use batch input in order for it to work?
What is wrong with this code in a UDF where there is no input variable. Will it work?:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
String WSuser = conf.put(key);
return WSuser;
Or should I skip this UDF all together and in stead use Variable Transport Binding and set XHeaderName1 = SRemoteUser ?
Looking forward to your book on iDocs in August
Mikael -
RFC - XI - WEBSERVICES scenario - Where to create RFC Destination
Hi Experts
For my RFC - XI - WEBSERVICES scenario, I have to create one TCP/IP RFC destination on R/3 system with the following details
RFC Destination Name : XXXX
Connection Type : T (TCP/IP)
Activation Type : u201CRegistered Server Programu201D
Program ID : YYYY
Gateway Host : R/3 Details ..??
Gateway Service : R/3 Details ..??
My Function Module (Remote-Enabled) - u201CZZZZu201D is defined in R/3 System.
This Function Module should be communicated with the target system i.e. NW XI system
As per the Note from SAP Help: To be able to communicate using RFC, you need to define the target systems as RFC destinations in the sending system(R/3)
Target system u2013 XI Server
Sending system u2013 R/3 System
Are my details provided are good enough as per my explanation? Please guide me in this regard.
QUESTION : Where exactly do I need to create the RFC Destination(SM59)? on R/3 side or on XI side?Refer the following link-
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1636235450DB01012070359836134304End?blog=/pub/wlg/1438
what are the inputs should be given to Gateway Host and Gateway Service while creating RFC Destination??
Open transaction SMGW on the R/3 system and choose
Goto -> Parameters -> Display. Beneath Attributes there will be the
entries 'gateway hostname' and 'gateway service'.# -
Explain me SOAP - RFC scenario?
Can any one brifely explain me about the SOAP sender configuration settings (i.e like after we create the wsdl structure how to use it )
Hi praveen,
check this links
Invoke Webservices using SAPXI
http://help.sap.com/saphelp_erp2004/helpdata/en/31/daa0404dd52b54e10000000a1550b0/content.htm
https://www.sdn.sap.com/irj/sdn?blog=/pub/wlg/1442 [original link is broken] [original link is broken] [original link is broken]
http://help.sap.com/saphelp_nw04/helpdata/en/9f/fdca3f01f33e1ce10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
Re: WebService
Re: SOAP Client for Synchronous Scenario
regards
srinu -
Documentation for SOAP-Messages OR RFC-Calls
Hello,
I am very interested in documentations about
- the SOAP-Messages BOPC sends from Client to .NET-Server and
- the RFC-Calls BOPC executes from .NET-Server to ABAP-Server
Does somebody know where to get this kind of documentations? Thanks very much for your help!I need this documentation too. We are developing extension in .Net, ABAP and VBA to solve some problems with Workflow.
-
Webservices related senarios like calling BAPI/RFC....Sync/Async
Hi All
I am new to XI and can any one help to configure the webservices scenarios
So any one can provide the step by step ....for these scenarios
Regards,
RakeshPrasad,
To summraize what is to be done for a SOAP - XI - SOAP scenario.
1. Decide what the receiver webservice is going to be. You can download the WSDL from multiple free webservice. For example use Currency Convertor http://www.webservicex.net/CurrencyConvertor.asmx
Download the WSDL from here and then import it into XI as an external definition. Now, This will act as your Inbound Message Type and Inbound Message Interfac.
2 . Create the datatype for your SOAP sender and message type as per requirement and then do the mapping .
3. Configuration in the ID remains the same, use Sender SOAP adapter and receievr SOAP adapters.
For more info,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f222711d10c0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
Regards,.
Bhavesh
Maybe you are looking for
-
How Can I Work With PHTML Files In Dreamweaver ??
I want to work with PHTML files in Dreamweaver CS3 - How do I go about getting this to work?
-
Error while trying to delete the universe from CMS
Dear All, I am getting "Unable to reconnect to the CMS XXXXXXXXX. The session has been logged off or has expired" error while trying to delete any universe from the CMS. I tried restarting tomcat but it didnt work. I am unable to delete any universe
-
I've used Firefox for a long time, but recently this message started appearing every time I open Firefox.
-
Oracle Heterogeneous Service - Description
How to acess MS-Access from Portal3.0.7. Is it possible,else what is the alternative to operate that database from Portal3.0.7. Thanks,
-
BPC 7.5 Formula Dimension Processing Error
Hello We have upgraded from 70-7.5 and when I do a Process of one of our dimensions i get the following error:- - [DATASOURCE].[#Y_YROVERYR] Parser: The following syntax error occurred during parsing: Invalid token, Line 1, Offset 92, [TOTWITHA. Th