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

6496Adding namespace in Method Response

Expand Messages
  • Mithun Bhattacharya
    Aug 11, 2010

    I am new to SOAP::Lite and I seem to have a weird behaviour which I can't find my way around. Any pointers would be highly appreciated.

    I am trying to migrate a set of webservices to run under Apache::SOAP instead of POE::Component::Server::SOAP;

    I am attaching a sample service running under POE and its equivalent as I see it under Apache::SOAP with this email.

    Bottom line the soap body for POE is
        <namesp1:hiResponse xmlns:namesp1="">
          <s-gensym3 xsi:type="xsd:string">Hello</s-gensym3>

    whereas the Apache::SOAP code is generating
        <hiResponse xmlns="">
          <s-gensym3 xsi:type="xsd:string">Hello</s-gensym3>

    The above difference seems to be stopping a .Net client from reading the response. Since I have a whole bunch of services to migrate I was hoping there is a way to setup the CGI to return the Response with a specified namespace automatically without modifying the return object manually everytime.

    - Mithun