cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt Regarding SOAP to File Scenario

Former Member
0 Kudos

Hi All,

I am trying to create a SOAP to File scenario .These are the following things I have done so far :

IR - 2 datatypes ( 1 for soap message and 1 for file message )

2 message types for the corresponding messages

2 Message interfaces, both are asynchronous

1 message mapping

1 interface mapping

ID- 2 business systems (1 to send soap, 1 to recieve file )

2 communiccation channel (soap sender, file receiver )

soap sender adapter parameters - Interface Name - Message interface for soap message

interface namespace - scenario namespace

Then, i generated a wsdl file to expose the outbound message interface for soap message as a web service, url for message interface : http://host:port.XISOAPAdapter/MessageServlet?:service:channel.

After generating the wsdl file, i imported it in external definition

Could anyone plz. tell me, is this the right approach to creat this scenario ? how can I test this scenario?using altova spy ?

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

Hi,

After generating the wsdl file, i imported it in external definition

This step is needed if you are getting the wsdl file from some other application...in such a case you develop the IR objects (MI, MM, IM) on this wsdl..

but in you case there is no need to import the XI generated wsdl into XI.....

The URL format is incorrect...to check which URL format suits you check this SAP Note:

https://websmp130.sap-ag.de/sap/support/notes/856597

rest of the development is fine:)

Regards,

Abhishek.

Former Member
0 Kudos

There is some problem to install Altova XML spy in my system for the moment, but i am trying to test the message from RWB.It is gives this error " Error while sending message: 403 Forbidden"

Could anyone plz tell me, what is the problem ?

former_member200962
Active Contributor
0 Kudos

RWB--> Component Monitoring --> Integration Engine --> Test Message

Make sure that you enter all the relevant details...sender/receiver service, interface, namespace, your XI user-id and password.....

Make sure that you have SAP_XI_APPL_SERV_USER role assigned to your XI-id.....check in transaction /nSU01.

Regards,

Abhishek.

Answers (6)

Answers (6)

prasannakrishna_mynam
Contributor
0 Kudos

Hi,

The URL you have mentioned to genarate WSDL is not a valid one

http://host:port.XISOAPAdapter/MessageServlet?:service:channel.

Check the below valid URL

http://host:port/XISOAPAdapter/MessageServlet?channel=:service:channel.

You no need to import this to the Eexternal Definition as you already have DT,MT and MI, Any way this dosn't make any difference.

You can use SOAPGUI Tool to test:

->Create New Project -> provide WSDL you have genarated.

->Select Request and provide username and password and click the green button on top(Submit request to end URL).

Using altova spy:

Select SOAP Menu->Create New SOAP Request and provide your WSDL file and

SOAPMenu->Send Request To Server

Then you will get response..

Regards,

Prasanna

Former Member
0 Kudos

how can I test this scenario?using altova spy ?

To send a SOAP request from the timeservice.wsdl file, so the following:

1. Make timeservice.wsdl the active file in the Main Window.

2. Select the menu option SOAP | Create new SOAP request.

3. Browse for the file timeservice.wsdl and confirm with OK.

4. In the dialog box that pops up (screenshot below), select a SOAP operation, for example, getServerTime, and click OK.

This creates a SOAP request document containing the getServerTime operation.

5. Select the menu option SOAP | Send request to server. The SOAP response document appears in the Main Window, containing the element getServerTimeResult, which displays the current server time of the Nanonull.com time service.


After generating the wsdl file, u need not  import it in external definition 

former_member183908
Active Contributor
0 Kudos

Hi

-->After generating the WSDL file Using the URL that should be imported into SOAP GUI or XML SPY not into the External definitions.

-->Save the WSDL file in your local desktop and import into your SOAP GUI or XML SPY,using that you can invoke your webservice.

Thanks

Former Member
0 Kudos

Hi,

>> After generating the wsdl file, i imported it in external definition.

This is not required..Once you genarate the WSDL from PI then it will be consume by SOAP Client (Altova or XML Spy)

Open Altova tool:

Go to soap ---> Create new soparequest then select the wsdl form the local desktop then

Again Go to soap->send soap request...follow by user Id and password.

Sameer

madanmohan_agrawal
Contributor
0 Kudos

>>is this the right approach to creat this scenario ?

Yes it is right approach.

>>how can I test this scenario?using altova spy ?

You can open the WSDL file in XML spy and

in altova goto soap->crete new soparequest...browse and select the wsdl that you had saved ...then again goto soap->send soap request...

this would ask for for a userid and pwd for the 1st time ..you can give XI user id and pwd

Regards

Madan Agrawal

former_member181962
Active Contributor
0 Kudos

>

> After generating the wsdl file, i imported it in external definition

>

I think this step is not required.

Otherwise, Your approach seems to be ok.

How to test this scenario?

1) using tools like XML Spy or altova

2) Using SOAP Client (Search the web for SOAP Client for free downloads)

3) From the test message option of the RWB

Regards,

Ravi