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

Re: Need help in generating a SOAP response to be consumed by a JAX-WS Client...

Expand Messages
  • dhaval_shah_m
    The suggestion below worked. However my JAX-WS 2.0.1 client is unable to parse it. Worse still it is failing to even throw a parse exception. Thanks Dhaval ...
    Message 1 of 3 , Sep 19, 2006
    • 0 Attachment
      The suggestion below worked. However my JAX-WS 2.0.1 client is unable
      to parse it. Worse still it is failing to even throw a parse exception.

      Thanks
      Dhaval

      --- In soaplite@yahoogroups.com, Eric Bridger <eric@...> wrote:
      >
      > Not really sure about this but in your server try something like:
      >
      > $SOAP::Constants::NS_SL_PERLTYPE =
      > "http://support.enira.com/ENIRA-SOAP.xsd";
      >
      > On Tue, 2006-09-19 at 02:04, dhaval_shah_m wrote:
      > > Hi!
      > >
      > > I am newbie to SOAP::Lite and hence the question.
      > >
      > > I was able to generate the following response from my SOAP::Lite
      server :
      > >
      > > <?xml version="1.0" encoding="UTF-8"?>
      > > <soap:Envelope
      > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      > > soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      > >
      > > <soap:Body>
      > > <pollDeviceByIDResponse xmlns="urn:ENIRA_Soap">
      > > <xsd1:pollDeviceParamOut
      > > xmlns:xsd1="http://support.enira.com/ENIRA-SOAP.xsd"
      > > xsi:type="xsd1:pollDeviceParamOut">
      > > <integration_queue_id_seq
      > > xsi:type="xsd:int">249</integration_queue_id_seq>
      > > <description xsi:type="xsd:string">...description...</description>
      > > <result xsi:type="xsd:string">success</result>
      </xsd1:pollDeviceParamOut>
      > > </pollDeviceByIDResponse></soap:Body></soap:Envelope>
      > >
      > > Now I am not sure what is wrong with the above. However, JAX-WS is
      > > expecting something like this :
      > >
      > > <?xml version="1.0" encoding="UTF-8"?>
      > > <soap:Envelope
      > > xmlns:xsd1="http://support.enira.com/ENIRA-SOAP.xsd"
      > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      > > soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      > >
      > > <soap:Body>
      > > <pollDeviceByIDResponse xmlns="urn:ENIRA_Soap">
      > > <xsd1:pollDeviceParamOut
      xsi:type="xsd1:pollDeviceParamOut">
      > > <integration_queue_id_seq
      > > xsi:type="xsd:int">249</integration_queue_id_seq>
      > > <description xsi:type="xsd:string">...description...</description>
      > > <result xsi:type="xsd:string">success</result> </pollDeviceParamOut>
      > > </pollDeviceByIDResponse></soap:Body></soap:Envelope>
      > >
      > > So the question is how do I coax SOAP::Lite to emit "xmlns:xsd1=<uri>"
      > > as part of the soap:Envelope attribute?
      > >
      > > Any pointers in this regard is appreciated.
      > >
      > >
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.