on 08-11-2009 3:05 PM
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
this was done with java mapping
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rams ,
Refer the following documents to do the same :
Steps for XML Validation by Adapter Engine in PI 7.1
How To... Perform XML Validations in SAP NetWeaver Process Integration 7.1
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.