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

Document/Literal service

Expand Messages
  • jigsaw9876
    Hi, I have a few rpc/encoded SOAP::Lite services at present. I would like to use document/ literal service now. While I see lots of samples on how to develop
    Message 1 of 1 , May 13 3:28 PM
    • 0 Attachment
      Hi,

      I have a few rpc/encoded SOAP::Lite services at present. I would like to use document/
      literal service now. While I see lots of samples on how to develop one using other
      languages and implementations, I am bit lost w.r.t SOAP::lite.

      I have come up with a WSDL for my service, the request is defined by a schema and the
      response is an xml defined by yet another schema. For example, using Java I would
      receive the xml, have a set of classes/bindings generated based on the xsd and use these
      to extract data out of xml, process and return an xml. Now, what would my server side
      code look like with Perl and SOAP::Lite? I presume SOAP::Server::Parameters would help
      only when I have a specific method defined. How would I extract elements from the xml?
      For example, if the following is my SOAPRequest, what would my server code be like?
      Would really appreciate any help.
      Thanks in advance,
      JS.

      <?xml version="1.0" encoding="UTF-8"?>
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:
      xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/
      XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:
      ns0="http://www.examples.com/types">
      <env:Body>
      <ns0:PurchaseOrderDocument><billTo><street>1 Main Street</street><city>Beverly
      Hills</city><state>CA</state><zipCode>90210</zipCode></
      billTo><createDate>2004-08-30T10:36:44.330-04:00</
      createDate><items><itemname>Copier Paper</itemname><price>10</
      price><quantity>2</quantity></items><items><itemname>Toner</
      itemname><price>920</price><quantity>1</quantity></items><poID>ABC-CO
      -19282</poID><shipTo><street>1 Main Street</street><city>Beverly Hills</
      city><state>CA</state><zipCode>90210</zipCode></shipTo></ns0:
      PurchaseOrderDocument></env:Body></env:Envelope>
    Your message has been successfully submitted and would be delivered to recipients shortly.