on 10-10-2007 3:29 AM
Hi All,
The wsdl file is generated by SAP XI. I used the XMLSpy to test it and get successful response.
Then I used wsdl.exe of .net 2.0 sdk to generate the C# proxy class, and use csc.exe to compile it to a dll, and then refer it in the project. After sent the soap message by C#, the XI shows the message is wrong, then I compare this soap envelop body with the one I sent by the XMLSpy as follow:
C#:
<MT_PP_014_PrdOrderGoodsRcv xmlns="http://mycompany.com/xi/sap/system/pp">
<content>
</content>
</MT_PP_014_PrdOrderGoodsRcv>
XMLSPY:
<m:MT_PP_014_PrdOrderGoodsRcv xmlns:m="http://mycompany.com/xi/sap/system/pp">
<content>
</content>
</m:MT_PP_014_PrdOrderGoodsRcv>
so it is the namespace, according the xml generated by C#, the MT_PP_014_PrdOrderGoodsRcv element isn't inlucded in the namespace http://mycompany.com/xi/sap/system/pp, which cause the error.
Anyone know how to fix it?
Thanks and B'Rgds,
Hello,
have you taken a look to the paper https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/06adbf03-0a01-0010-f386-d8e45561... from Wallace Su? He describes what you have to change in the WSDL generated from XI in order to consume the Web Service in VS 2005.
Thanks,
- Juergen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The soap C# sent to me is okay, a mapping error happened because certain nodes absent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.