cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Namespace with the SOAP msg sent by C#

Former Member
0 Kudos

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,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

The soap C# sent to me is okay, a mapping error happened because certain nodes absent.