cancel
Showing results for 
Search instead for 
Did you mean: 

Synch-Aynch Communication

Former Member
0 Kudos

Hello All,

My scenario is like Synch-Asynch communication.

WebService <----


> PI -


>legacy system

WebService sends message and message post to legacy file system. SAP PI sends response back to the webservice.

My interface is running successfully.

But if the sending XML is not well formed my request mapping is failing and Interface is failing.

But my requirement is

If request XML is not wellformed SAP PI needs to send resopnes XML to webservice without posting data to legacy system.

is there any way to achieve this functionality in SAP PI7.1

Regards

Ram

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

this was done with java mapping

Former Member
0 Kudos

Rams ,

Refer the following documents to do the same :

Steps for XML Validation by Adapter Engine in PI 7.1

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d026d253-3108-2c10-69a0-a5460fc1...

How To... Perform XML Validations in SAP NetWeaver Process Integration 7.1

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d06dff94-9913-2b10-6f82-9717d9f8...

Regards,

Former Member
0 Kudos

Hi These validations are aganaist the XSD, but for me validation is needed wellformed or not?

hello all....

any solution for the above?

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>is there any way to achieve this functionality in SAP PI7.1

actually it is possible

you can use XML validation on the sender adapter and if the structure of the payload is different from the definition the message processing is stopped and adapter sends a synchronous response informing about the structure error.

Regards,

Michal Krawczyk

Former Member
0 Kudos

Michal,

This is in the scenario that in PI you have a sender SOAP CC. But what if you are using the integration engine of PI to receive the calls from the web Service?

Is it posible to do XML validation with out the sender CC SOAP?

Regards,

Felipe

Former Member
0 Kudos

Hi Michal,

Webservice send the XML like as below

<XmlInfo>

<Name>aaaa</Name>

<ID>bbbb</ID>

<Item>

<ItemName>cccc</ItemName>

<ItemID>ddd</ItemID>

</Item>

<Item>

<ItemName>eeee</ItemName>

<ItemID>fff</ItemID>

</Item>

</XmlInfo>

I can not import the XSD with the name <XmlInfo> as external defination. The SAP PI can not allow us to import the XSD withy the filed names or segments start with the XML. So i have created the XSD with TXmlInfo tag.

So I cannot validate the XML with this XSD. .

Edited by: Rams on Aug 11, 2009 5:18 PM