Hello everybody,
Here is my problem :
I have to create a webservice to send IDOCs to a XI/PÏ SAP Server.
The people from SAP side gave me a wsdl file to generate in webMethods the webservice.
After generation; in the webservice, the processus is the following :
- pub.soap.utils.createSoapData
- pub.xml.documentToXMLString with the IDOC in parameter
- pub.xml:xmlStringToXMLNode with the result of step 2
4 ) pub.soap.utils:addBodyEntry with the parameters (results step 1 and step 3)
When i’m trying to execute the webservice, i have the following error :
Invalid Body Entry. SOAP Body Entries must have a namespace name.
at com.wm
I found on this forum a solution which is to populate the nsDecls parameters with ns1 tag on service pub.xml.documentToXMLString (see in attachment).
The sending of idocs works fine but the xml idoc is in error in the XI/PI system. The people from SAP side analysed the problem et they told me i have to delete the ns1 tag in xml.
So my problem is : i have to put the ns1 tag to send idoc (else i have the error SOAP Body Entries must have a namespace name) but i must to delete this tag because the xml format is incorrect in SAP.
Do you have an idea to execute correclty the WS without fill the ns1 tag ?
In attachment the wsdl file and the screen print.
Thanks,
Nicolas