0 Replies Latest reply on Jan 23, 2008 7:00 AM by Dominic Farmer

    WebService serialization fails

    Dominic Farmer
      Hi,

      I'm not sure if this is a bug or a compatibility issue...

      When I compile the same code in Flex 3 to call a web service as I used in Flex 2, the web message (viewed in Fiddler) includes namespace definitions on each node in the header which are not there in Flex 2. (Example below)

      This means that when the message hits the server it won't deserialize.

      Using Fiddler I can remove the namespaces and resubmit the request and it works.

      Is there some new functionality in the Flex 3 SDK to specify whether the namespaces should appear or is it a bug?





      eg:

      Flex 2:

      <?xml version="1.0" encoding="utf-8"?>
      <SOAP-ENV:Envelope xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><AuthHeader><BrowserType>test< /BrowserType><Password>test</Password><Logon>test</Logon><MovieVersion>test</MovieVersion> <ScreenSize>test</ScreenSize></AuthHeader></SOAP-ENV:Header><SOAP-ENV:Body><Login xmlns=" http://eCRF.ServiceContracts" /></SOAP-ENV:Body></SOAP-ENV:Envelope>

      Flex 3:

      <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">
      <SOAP-ENV:Header>
      <AuthHeader>
      <tns:Logon xmlns:tns=" http://eCRF.ServiceContracts">test</tns:Logon>
      <tns:Password xmlns:tns=" http://eCRF.ServiceContracts">test</tns:Password>
      <tns:ScreenSize xmlns:tns=" http://eCRF.ServiceContracts">test</tns:ScreenSize>
      <tns:BrowserType xmlns:tns=" http://eCRF.ServiceContracts">test</tns:BrowserType>
      <tns:MovieVersion xmlns:tns=" http://eCRF.ServiceContracts">test</tns:MovieVersion>
      </AuthHeader>
      </SOAP-ENV:Header>
      <SOAP-ENV:Body>
      <tns:Login xmlns:tns=" http://eCRF.ServiceContracts"/>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      Thanks
      Dom