cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass XML as a string to .net Webservice

Former Member
0 Kudos

Hello Experts ,

Wanted to understand what are different ways I can achieve the below requirement :

1. I have a source XML which I need to pass as a string to a field of .net webservice (asmx) .

What are different ways of achieving it . Any ready to use code which can be modified and used will be highly appreciated .

Regards ,

Nayan

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

You can use two options

1)Write Java mapping and retunr entire source document as a string.

search in scn for this

2)Very simple approch is map rooot node of source to target field and right click on source node and select return as XML.

This feauture available only from PI 7.1 onwards.

Regards,

Raj

Former Member
0 Kudos

HI Raja Shekhar .

I am on PI 7.0 .

One small query, If I have to go for Java Mapping do I need to create exactly similar wsdl file for target as the wsdl which I need to trigger ?

regards,

baskar_gopalakrishnan2
Active Contributor
0 Kudos

In your case java mapping is the solution to go.

Use this wiki that matches exactly your requirement

http://wiki.sdn.sap.com/wiki/display/XI/Java+Mapping-+Convert+the+Input+xml+to+String

rajasekhar_reddy14
Active Contributor
0 Kudos

Java maping output should match with Target Structure, in your case only one field right so not a big deal, check the link what Baskar shared, it works for you.

Answers (0)