cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure SOAP synchronous response?

Former Member
0 Kudos

Hi to all!

i am newbee in XI and i want to configure simple integration proccess SOAP-XI-SOAP. It's important that that there is synchronous SOAP response that will send response to address from what XI get request. For example can i get response to XMLSpy after sending request from it?

I can't get how i must configure Communication Channel which must send response.

Could anyone explain me how to do itm please?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Mike

Check out the How to Guide -


" How to Set Up a Web Service-Related Scenario with SAP XI "

in following web-link

[original link is broken]

Also yes you can execute the request from XML Spy using option -->

SOAP --> Create new SOAP request --> Select proper WSDL file --> Select Operation in that WSDL file

Now Again

SOAP --> Send request to Server

I hope this will help you to develop & test your SOAP based scenario.

- Lalit Chaudhary -

Answers (5)

Answers (5)

Former Member
0 Kudos

The problem is solved.

Sorry me that i'm not right describe the problem at first.

U can see solution on that thread:

Former Member
0 Kudos

Hi Mike

to do the SOAP >XI>SOAP sceanrio you have to the following steps.

craete all the design objects.

Design Objects:

Data Type

Message Type

Message Interfaces

outbound Synchronous interafce (using the souirce data type and the target data type u have craeted)

Inbound Synchronous interface (using the request message and the response message)

Message Mapping (Request & Response)

Interface Mapping

Directory Objects:

sender and receiver service

sender and receiver communication channel

sender agreement

receiver determination

interface determination

receiver aghreement

now to test the scenario ypu can use the xml spy tool or stylus studio to send the SOAP request and get response back

if you still face the problem please reply me back

Thanks

Rinku

Former Member
0 Kudos

Hi,

How to use SOAP adapter:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f...

RFC -> XI -> WebService - A Complete Walkthrough

/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1

/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2

/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments

/people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap

/people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies

SOAP

An Overview of SOAP

/people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap

Regards,

Phani

nisarkhan_n
Active Contributor
0 Kudos

soap to soap scenario

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

sap to webservice

/people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies

With BPM

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

justin_santhanam
Active Contributor
0 Kudos

Mike,

You can see the response in XML spy!. It's simple scenario , you have to make sure the following.

Create O/B Synchronous Interface, and I/B Synchronous Interface.

If the source and target structure or different, then u must create the following Mapping programs.

Message Mapping.

Request Mapping --- Sender Soap request to Webservice Soap request

Response Mapping --- Webservice Soap response to Sender Soap response.

Create One Interface mapping btw O/B Synch and I/B synch, while choosing the mapping choose the corresponding mapping in Request/Response tab!

Thats it, in ID it will be normal configuration!

You have to create WSDL using O/B Synch and use it in XML SPY.

Hope it helps!

raj.

Former Member
0 Kudos

Thx for response to all.

Raj, could u explain me why should i do 2 Message Mappings (MM)?

i have 2 simple Data Types (DT):

dt_Person & dt_Employee;

2 Message Types (MT) which are based on DT:

mt_Person & mt_Employee;

2 Message Interface (MI):

[mi_so_Person|http://www.imgstore.ru/files/Byl4aieGk9BEJkKi2cxKNtsxBUuaIY1iRx7LNLK4.png] & [mi_si_Employee|http://www.imgstore.ru/files/lS3dy7f1L8Uz8Djwq9P8BzyrVrbYHNSdrFUKqX5s.png]

1 Message Mapping (MM):

[mm_Person_to_Employee|http://www.imgstore.ru/files/Wwm4vVKiyOfaLAzSTm8wRX6CA3mVNRC5JsAmCb8u.png]

And 1 Message Interface (IM) which is based on MM:

mi_Person_to_Employee

And in IntegrationDirectory i have:

1 CC soap Sender [cc_out_soap_test_sync|http://www.imgstore.ru/files/e1u3oGdaLFTOxJtLhRu0ie4zA0LyWZz1buW4qhJI.png] which is for receiving SOAP request

and also it is needed to configure 1 CC soap Reciever to send Response and there is field Target URL where response should send, but i don't know what URL is for XMLSpy or for example .NET Application which sent SOAP request to XI.

Former Member
0 Kudos

Now XMLSpy get following response from XI:


<?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.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE:
	at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:455)
	at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:133)
	at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:855)
	at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
	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)
          
				
			
		
	

]]>

May be Somybody already faced with that error and know how to solved it?

Former Member
0 Kudos

Hi Mike,

Yes , Raj is absolutely right.. You need to configure two message mappings.Because

1) Request Mapping : Soap request to Webservice Soap request

2) Response Mapping: Webservice response to Soap response.

There will be one interface mapping in which you state request and response mappings.

Please follow the same and then check your scenario.

Hope it solves your query.

Former Member
0 Kudos

Hello Anurag.

thx for response.

Please look at my IM - [req|http://www.imgstore.ru/files/HTrTr6VjL2Jp6t0jIiyGPjIilDZ2TVGoJWv2IYIK.png] [resp|http://www.imgstore.ru/files/92tgPI96Ytj0a29wsHVFIEniqmCdz7DsqXSVlJzf.png]

The matter is that there is only 2 MT and only 1 MM between them, so 1 MM is used two times.

Am i right?

if not could u please explain me in detail it for my objects mt_Person & mt_Employee ?