on 03-31-2014 8:11 AM
Dear All,
A WSDL is created from a Function Module in the R/3 but when I try to import it, shows invalid WSDL. The reason is malformed XML. I found that the error is in the first line - <?xml version="1.0" encoding="utf-8"?>. When I modified it to <?xml version="1.0" ?>, the XML tag error is removed and it is now well formed.
But when I again try to import the wsdl file in the PI, I am getting following error - Element "Policy" is not permitted.
It seems there are extra characters in the header. The header is as follows:
<?xml version="1.0" encoding="utf-8"?><wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
Can you tell me how to remove the extra characters?
Thanks and Regards.
Rana Brata De
Hi Rana Da
Is there any reason for importing the function module as WSDL ?
The easy and convenient way is to make the function module as remote enabled and then import it as RFC in ESR imported objects section.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear All,
I have found a few details which I want to share with you all. Whenever we generate a WSDL from an RFC Module in the R/3, then the WSDL always throw error while importing in the PI External Definition. The reason is the presence of some elements in the generated WSDL which PI cannot recognize.
1. XML Format Error - the generated WSDL has <?xml version="1.0" encoding="utf-8"?> in the first line and the format error can be rectified if you remove - encoding="utf-8" from the first line.
2. WSDL Error - the generated WSDL has a segment <wsp:Policy> ... </wsp:Policy>. If you remove this segment then the WSDL will be imported successfully.
Thanks and Regards,
Rana Brata De
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rana da,
Please refer the below thread. It might answer your question
http://scn.sap.com/thread/1884937
Regards
Bikash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.