0 Replies Latest reply on Sep 28, 2009 10:11 AM by Thorsten Witt

    mx.rpc.soap.WebService seems to loose some data when fragmenting messages

    Thorsten Witt

      Hello,

      I am developing a Flex application, which makes use of the mx.rpc.soap.WebService class of the Flex framework. When I send data to a Webservice, some of the information is lost during transmission. As of the architecture of the system, the XML has to have further XML in attributes of elements. The server however receives an altered version of the XML as shown below. In some places the XML lacks characters. For this reason, the XML on the server cannot be processed properly.

       

      This is what I send:

       

      <request>

          <command name="executeData">

                <param name="data" value="

                    &lt;data>

                          &lt;param name=&quot;sessionID&quot; value=&quot;c0600957-d16da-41b0-b910-bf7030a43401&quot;/>

                          &lt;param name=&quot;journal&quot; value=&quot;

                              &lt;journal>

                                    &lt;operation type=&quot;CREATE_TOPICMAP&quot;>

                                        &lt;param name=&quot;name&quot; value=&quot;TestMap&quot;/>

                                        &lt;param name=&quot;id&quot; value=&quot;134546547987616255TopicMap&quot;/>

                                    &lt;/operation>

                                    &lt;operation type=&quot;CREATE_TOPIC&quot;>

                                         &lt;param name=&quot;id&quot; value=&quot;7A451364-EDC6-3BCC-A004-00460193ED7E&quot;/>

                                         &lt;param name=&quot;isType&quot; value=&quot;false&quot;/>

                                         &lt;param name=&quot;typeMode&quot; value=&quot;&quot;/>

                                         &lt;param name=&quot;nameID&quot; value=&quot;2FD64591-A8C5-A98D-F76F-0046019319C3&quot;/>

                                         &lt;param name=&quot;name&quot; value=&quot;NEW_TOPIC_4&quot;/>

                                   &lt;/operation>

                              &lt;/journal>&quot;/>

                     &lt;/data>

                 "/>

          </command>

      </request>

       

       

      What the server receives is in fact this (I added the missing parts an made them red, the server does not see these red parts):

       

      <request>
      <command name="executeData">
           <param name="encryptedData" value="
                &lt;data>
                     &lt;param name=&quot;sessionID&quot; value=&quot;c0600957-d16d-41b0-b910-bf7030a43401&quot;/>
                     &lt;param name=&quot; value=&quot;

                          &lt;journal>
                               &lt;operation type=&quot;CREATE_TOPICMAP&quot;>
                               &lt;param name=&quot;name&quot; value=&quot;TestMap&quot;/>
                               &lt;param name=&quot;id&quot; value=&quot;134546547987616255TopicMap&quot;/>

                          &lt;/operation>
                          &lt;operation type=&quot;CREATE_TOPIC&quot;>
                               &lt;param name=&quot;id&quot; value=&quot;7A451364-EDC6-3BCC-A004-00460193ED7E&quot;/>
                               &lt;param name=&quot;isType&quot; value=&quot;false&quot;/>&lt;param name=&quot; value=&quot;&quot;/>   
                               &lt;param name=&quot;nameID&quot; value=&quot;2FD64591-A8C5-A98D-F76F-0046019319C3&quot;/>
                               &lt;param name=&quot;name&quot; value=&quot;NEW_TOPIC_4&quot;/>
                          &lt;/operation>

                     &lt;/journal>&quot;

           "/>
      </command>
      </request>

       

       

      Does anybody know this issue?

      Thanks in advance

       

      Thorsten Witt