looking for Flex client code examples: Flex frontend + Progr

Posted by ysetko on 20-Nov-2009 08:46

Tried searching the Web - did not find anything appropriate.

Appreciate your help. Thanks, Yuriy

All Replies

Posted by ysetko on 20-Nov-2009 13:31

Or, maybe anyone can help with this problem?  ::

We have built several webservices accessing our test database.

Installed SoapUI, added WSDL files to SoapUI, entered data into XML requests, - tested against our webservices - all worked as a charm!

Then tried them with Flex 3.

Created a project, imported WSDL, downloaded Adobes's US weather example fromhttp://www.adobe.com/devnet/flex/articles/flex_ws.html

and, by example, wrote a similar code to work with our webservices. Tested - received the following error:

Error in SOAP body: Unable to resolve namespace URI for ''''''''''''''''''''''''''''''''. (10915)

Then we compared Requests sent by SoapUI that worked, and by Flex that did not.

Here are both requests.

SoapUI:

http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:PoirotWebServices-org:poirot_web_services" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

  

  

      http://schemas.xmlsoap.org/soap/encoding/">

         LON

         GBP

         NALNWICK

         2008-04-19

         2

        

         NBL,SHE,ALN,,,SHE,

        

        

           

           

               PBK

               12

               1

               2

               test remark

           

        

     

  

Flex:

   
      LON
      GBP
      NALNWICK
      2008-04-19
      2
      PTB4
      NBL,SHE,ALN,,,SHE,
     
       
         
         
          PBK
          12
          1
          2
          test remark ssr
       
     
   
 
Then we compared these two XMLs.

Found that

1) if we add "xds" into all data definitions like xsi:type=":decimal" to make it look like xsi:type="xds:decimal"

and 2) if we replace the envelope definition

http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  http://schemas.xmlsoap.org/soap/encoding/">
with a version from SoapUI:
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:PoirotWebServices-org:poirot_web_services" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
then the modified "Flex request" worked too!
My question is - what can we do to make Flex generate same valid Request formats as SoapUI does ??
Thank you

This thread is closed