6 Replies Latest reply: Mar 21, 2013 7:17 AM by Kayaman RSS

    Is it possible to create own soap envolpe and body ?

    Ajay Sharma
      Hi,

      I developed a web service and deployed it on Web Logic server and Glassfish server.

      But its soap envelope and soap body is different.
       
      
      Glassfish Request :
      -------------------
      <?xml version="1.0" encoding="UTF-8"?>
      <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
          <S:Header/>
          <S:Body>
              <ns2:getFunctionXML xmlns:ns2="http://webservices.onwardinfosys.com/">
                   <functionName>inotification_pkg_ver4.notifications_count</functionName>
                <parameters>IOS_USER</parameters>
                <appUserName>string</appUserName>     
                <appUserPass>string</appUserPass>
                <deviceCode>string</deviceCode>
              </ns2:getFunctionXML>
          </S:Body>
      </S:Envelope>
      Weblogic Request :
      --------------------
      
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
        <env:Header />
          <env:Body>
          <getFunctionXML xmlns="http://webservices.onwardinfosys.com/">
            <!--Optional:-->
            <functionName xmlns="">INOTIFICATION_PKG_VER4.NOTIFICATIONS_COUNT</functionName>
            <!--Zero or more repetitions:-->
            <parameters xmlns="">IOS_USER</parameters>
            <!--Optional:-->
            <appUserName xmlns="">string</appUserName>
            <!--Optional:-->
            <appUserPass xmlns="">string</appUserPass>
            <!--Optional:-->
            <deviceCode xmlns="">string</deviceCode>
          </getFunctionXML>
        </env:Body>
        </env:Envelope>
      Is it possible to have only one soap envelope and body even if I am deploying web service to different servers ?


      Regards,
      Ajay Sharma