on 04-03-2012 7:01 PM
Hi PI mates,
I got an issue while sending data to webservice. The message name is missing while the payload is going from PI to webservice so it is giving an error that "operation is not found".
The below i can see when i am triggering in Soap UI.
<urn:FNSENDCOMPLAINTTOCFR soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<COMPLAINT xsi:type="urn:CFRCOMPLAINT">
....
</COMPLAINT>
</urn:FNSENDCOMPLAINTTOCFR>
But while going from PI the below payload is going
<?xml version="1.0" encoding="UTF-8"?>
<ns0:COMPLAINT >
</ns0:COMPLAINT>
So it is giving an error COMPLAINT operation is not found.
When i am drag & drop into Target inside mapping i am getting the above payload. Need an idea how to get the same payload as in soap ui.
Appreciate your help.
Regards,
Loordh.
Here, You dont create message type.SO you dont see message name in target message. Since you use external definition message, Pick the method as external type message in service interface. That's it. You just do the mapping. This is very similar to using IDOCs or RFCs.
>When i am drag & drop into Target inside mapping i am getting the above payload. Need an idea how to get the same payload as in soap ui.
Go to mapping test tool and provide data and test and after execution pick the response message of target.
Note: PI generally provides prefix ns0 or so... This is PI mapping internal design, but still you will see if namespace exists, only prefix will be different. SOAPUI is not mapping tool. It's a just webservice test tool.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhaskar,
The payload is going this way from PI.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:COMPLAINT >
</ns0:COMPLAINT>
But it should go in this way
<urn:FNSENDCOMPLAINTTOCFR soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<COMPLAINT xsi:type="urn:CFRCOMPLAINT">
....
</COMPLAINT>
</urn:FNSENDCOMPLAINTTOCFR>
Thank you.
Bhaskar,
In mapping tool i am getting
<?xml version="1.0" encoding="UTF-8"?>
<ns0:COMPLAINT >
</ns0:COMPLAINT>
i am talking about end to end It should go
<?xml version="1.0" encoding="UTF-8"?>
<FNSENDCOMPLAINTTOCFR>
<ns0:COMPLAINT >
</ns0:COMPLAINT>
</FNSENDCOMPLAINTTOCFR>
so how to add that
<FNSENDCOMPLAINTTOCFR> in the target, should i add in WSDL file?
Runtime your soap adapter adds as per the wsdl requirement. It will create SOAP envelope which contains header and payload. Better run a test and see how that goes in SXMB_MONI. Mapping tool test is just for the payload information. Please remember that.
Note: If the WSDL file has no information about SOAP Header and you have above requirement to add in your message, then you have to use java mapping or XSLT mapping to add those information.
Bhaskar,
It is going like this.
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:COMPLAINT>
...
...
</ns0:COMPLAINT>
Even in the moni also, so i am getting error like Operation "COMPLAINT" is not found as operation should FNSENDCOMPLAINTTOCFR
If it goes like below then It will trigger webservice
<?xml version="1.0" encoding="UTF-8"?>
<FNSENDCOMPLAINTTOCFR>
<ns0:COMPLAINT >
</ns0:COMPLAINT>
</FNSENDCOMPLAINTTOCFR>
That means you need to have XSLT mapping or Java mapping to add those tags in the message.
The below link for XSLT mapping beginners. beginnerhttp://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/000ee4d0-be91-2d10-8aaf-ff8045bdd...
You could also do it using java mapping. Search SDN.
It's not advisable for us to modify the WSDL. If you have requirement from the target system to have those tags in the message, then tell target system to modify the wsdl and you can re import after their change. Otherwise use XSLT or Java mapping to add those tags.
Looks like you have outdated WSDL for that message. Talk to Target system.
Hope that helps.
Hi Bhaskar,
I have resolved it by enabling the option in external defintion.Actually by default the option will be there" Do Not Extract Messages "..so i have changed it to Using RPC Style so that all message strctures came properly.
http://help.sap.com/saphelp_nwesrce/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/content.htm
thanks for all your replies.
Regards,
Loordh.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.