views:

60

answers:

1

I am having a small problem with a soap request in flex. If i use a third part tool like .NET WebService studio the request is:

<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  <soap:Body>
<GetModels xmlns="http://tempuri.org/SLWS/Service1"&gt;
  <Brand>Lexus</Brand>
  <CountryCode>EU</CountryCode>
  <LanguageCode>EN</LanguageCode>
</GetModels>
 </soap:Body>
</soap:Envelope>

But when I do this with Flex it uses the tns namespace:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<SOAP-ENV:Body>
<tns:GetModels xmlns:tns="http://tempuri.org/SLWS/Service1"&gt;
  <tns:Brand>Leuxs</tns:Brand>
  <tns:CountryCode>EU</tns:CountryCode>
  <tns:LanguageCode>EN</tns:LanguageCode>
</tns:GetModels>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I need a way to send the request like WebService studio does, without the tns: namespace on each node.

Thanks

A: 

OOooops!

Looks like I made an error

<tns:Brand>Leuxs</tns:Brand>

should have been

<tns:Brand>Lexus</tns:Brand>

It still works fine with the tns namespace!

Neil