Loading ...
Sorry, an error occurred while loading the content.

soap::lite rpc/literal style

Expand Messages
  • Erwin Lesmana Liem
    can anyone give me some explaination how I modify the soaplite encoding style into rpc/literal? default is rpc/encoded. I ve searched it in internet, but find
    Message 1 of 2 , May 23, 2008
    • 0 Attachment
      can anyone give me some explaination how I modify the soaplite
      encoding style into rpc/literal? default is rpc/encoded. I've searched
      it in internet, but find nothing..

      default:

      <?xml version="1.0" encoding="UTF-8"?>
      <soap:Envelope>
      <soap:Body>
      <location>
      <ac xsi:type="xsd:int">01234</ac>
      <zip xsi:type="xsd:int">9876</zip>
      <street xsi:type="xsd:string">Avenue</street>
      <housenumber xsi:type="xsd:int">20</housenumber>
      </location>
      </soap:Body>
      </soap:Envelope>

      what I want is how can I remove the data type in each element. So it
      looks like this:

      <ac>01234</ac>
      <zip>9876</zip>
      <street>Avenue</street>
      <housenumber>20</housenumber>

      thanks a lot!

      Erwin
    • Eric Bridger
      Been a while since I ve done SOAPLite but if I remember correctly you can use something like: SOAP::Data- name( zip = 01234 )- type( ) to remove the
      Message 2 of 2 , May 23, 2008
      • 0 Attachment
        Been a while since I've done SOAPLite but if I remember correctly you
        can use something like:
        SOAP::Data->name( 'zip' => '01234')->type('') to remove the xsi:type
        attributes.

        Eric


        On May 23, 2008, at 8:18 AM, Erwin Lesmana Liem wrote:

        > can anyone give me some explaination how I modify the soaplite
        > encoding style into rpc/literal? default is rpc/encoded. I've searched
        > it in internet, but find nothing..
        >
        > default:
        >
        > <?xml version="1.0" encoding="UTF-8"?>
        > <soap:Envelope>
        > <soap:Body>
        > <location>
        > <ac xsi:type="xsd:int">01234</ac>
        > <zip xsi:type="xsd:int">9876</zip>
        > <street xsi:type="xsd:string">Avenue</street>
        > <housenumber xsi:type="xsd:int">20</housenumber>
        > </location>
        > </soap:Body>
        > </soap:Envelope>
        >
        > what I want is how can I remove the data type in each element. So it
        > looks like this:
        >
        > <ac>01234</ac>
        > <zip>9876</zip>
        > <street>Avenue</street>
        > <housenumber>20</housenumber>
        >
        > thanks a lot!
        >
        > Erwin
        >
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.