Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Problem with missing namespace prefix in SOAP Body

From: farenka <farenka@-------.--->
To: NULL
Date: 9/17/2007 2:00:00 PM

Hi,

I developed a web service in .Net 2.0. It works fine using clients
written in .net (C# or Vb)

I'm experiencing some problems when a SAP application tries to connect
to my web service.

I analyzed the SOAP request and I noticed the following:

The correct SOAP  request looks like:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP:Header />
 <SOAP:Body>
    <m:My_Function xmlns:m="http://www.dummy.com/">
      <m:Header>
         <m:ID>AAF002</m:ID>
      </m:Header>
    </m:MT_CreateCustomer_RES>
  </SOAP:Body>
</SOAP:Envelope>

The SOAP request built by SAP is:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP:Header />
 <SOAP:Body>
    <m:My_Function xmlns:m="http://www.dummy.com/">
      <Header>
         <ID>AAF002</ID>
      </Header>
    </m:MT_CreateCustomer_RES>
  </SOAP:Body>
</SOAP:Envelope>

The only difference is the missing "m:" prefix in the tags beneath the
declaration of the namespace "m:".

The result is My_Function receiving empty parameters.

Since it should not a bug on the SAP side (I found other examples on
the web, with requests without prefix in the inner tags) do you know
any way to accept such kind of request using .net, or you have some
suggetions?

Thank you in advance!

Frk



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent