1 Reply Latest reply on Oct 22, 2006 4:39 AM by Newsgroup_User

    SOAP Message

    gporto
      Hi,

      I try to send a xml message to a web service deployed in weblogic server 8.1.5.
      My code is:

      public function insertPayment():void {
      var xmlRequest:XML = <insertPayment>
      <hmInsertTask>
      <item>
      <key>beneficiary</key>
      <value>{beneficiary.text}</value>
      </item>
      <item>
      <key>paymentDesc</key>
      <value>{paymentDesc.text}</value>
      </item>
      </hmInsertTask>
      </insertPayment>
      paymentServices.insertPayment({xmlRequest:XML});

      }

      the problem is that server side (in weblogic) the message arrives empty. I log the message and is the following:
      <SOAP-ENV:Envelope xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
      <SOAP-ENV:Body>
      <insertPayment xmlns=" http://www.openuri.org/">
      <ns0:hmInsertTask xmlns:ns0=" http://www.openuri.org/">
      <ns0:item>
      <ns0:key xsi:nil="true" />
      <ns0:value xsi:nil="true" />
      </ns0:item>
      </ns0:hmInsertTask>
      </insertPayment>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      Apparently when i nvoke webservice, flex build this message and it ignore the other..

      I hope someone help me

      Thanks

        • 1. Re: SOAP Message
          Level 7
          I'm not sure about Flex, but Flash Professional has a WebService class,
          that makes WebServices a lot easier to use. I guess the class is
          available for Flex as well (but I'm not sure)

          In Flash you can find it under: mx.services.WebService

          - Magnus

          gporto wrote:
          > Hi,
          >
          > I try to send a xml message to a web service deployed in weblogic server
          > 8.1.5.
          > My code is:
          >
          > public function insertPayment():void {
          > var xmlRequest:XML = <insertPayment>
          > <hmInsertTask>
          > <item>
          > <key>beneficiary</key>
          > <value>{beneficiary.text}</value>
          > </item>
          > <item>
          > <key>paymentDesc</key>
          > <value>{paymentDesc.text}</value>
          > </item>
          > </hmInsertTask>
          > </insertPayment>
          > paymentServices.insertPayment({xmlRequest:XML});
          >
          > }
          >
          > the problem is that server side (in weblogic) the message arrives empty. I log
          > the message and is the following:
          > <SOAP-ENV:Envelope xmlns:xsd=" http://www.w3.org/2001/XMLSchema"
          > xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/"
          > xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
          > <SOAP-ENV:Body>
          > <insertPayment xmlns=" http://www.openuri.org/">
          > <ns0:hmInsertTask xmlns:ns0=" http://www.openuri.org/">
          > <ns0:item>
          > <ns0:key xsi:nil="true" />
          > <ns0:value xsi:nil="true" />
          > </ns0:item>
          > </ns0:hmInsertTask>
          > </insertPayment>
          > </SOAP-ENV:Body>
          > </SOAP-ENV:Envelope>
          >
          > Apparently when i nvoke webservice, flex build this message and it ignore the
          > other..
          >
          > I hope someone help me
          >
          > Thanks
          >
          >
          >