6 Replies Latest reply on Mar 5, 2020 8:20 AM by Aryan Anantwar

    Make soap request method two error

    Pratik Kumbhare
      Share This:

      Hi Team,

      I am new to this module.

      i am accessing simple web service using BMC TSO.

      I have used "Make SOAP request method two" process. My adapter request is as below

      [adapter request=

      <request-data>

        <soap-rpc-request>

          <passphrase />

          <soap-url>http://drem1xx1/arsys/WSDL/public/drem1xxx/OutageCategorizationConfigWS</soap-url>

          <username>pratik</username>

          <password>****MASKED****</password>

          <soap-action>POST</soap-action>

          <chunked-encoding>true</chunked-encoding>

          <soap-header-content />

          <soap-body-content>

            <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:OutageCategorizationConfigWS">

              <urn:OutageCategorizationConfigCreate>

                <urn:Submitter>$USER$</urn:Submitter>

                <!--Optional:-->

                <urn:Assigned_To>pratik</urn:Assigned_To>

                <urn:Status>Proposed</urn:Status>

                <urn:Short_Description>$USER$</urn:Short_Description>

                <!--Optional:-->

                <urn:Outage_Tier_1>Test1</urn:Outage_Tier_1>

                <!--Optional:-->

                <urn:Outage_Tier_2>Test2</urn:Outage_Tier_2>

                <!--Optional:-->

                <urn:Outage_Tier_3>Test3</urn:Outage_Tier_3>

                <!--Optional:-->

                <urn:z1D_Validation> </urn:z1D_Validation>

              </urn:OutageCategorizationConfigCreate>

            </soapenv:Body>

          </soap-body-content>

        </soap-rpc-request>

      </request-data>]

       

      AND i am getting below error as response.

      [TEXT=Adapter response]

      [adapter response=

      <soap-response>

        <metadata>

          <status>error</status>

          <error>Error occurred processing request data   Summary: WebService does not return any response [200 : 200 ]; nested exception is:

      org.xml.sax.SAXException: Bad envelope tag:  definitions

      </error>

        </metadata>

      </soap-response>]

       

      any one have a idea about this issue.. or i am doing something wrong..

        • 1. Re: Make soap request method two error
          Aryan Anantwar

          Hello Pratik,

           

          I suggest you to first test the Web Service in SOAPUI and once it is working in SOAPUI,

          get the SOAP envelope from there and use the same in TSO by replacing the values with Context items.

           

          Also, use "Make SOAP request method one" process instead of 'method two'

           

          Regards,

          Aryan Anantwar

          1 of 1 people found this helpful
          • 2. Re: Make soap request method two error
            Pratik Kumbhare

            Aryan Anantwar

             

            Hey Thanks Mate, i have used SOAP Method one now. and it's running successfully.

            But records not get created. i got the below adapter response..

             

            [adapter response=

            <soap-response>

              <metadata>

                <status>success</status>

              </metadata>

              <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                <soapenv:Body>

                  <soapenv:Fault>

                    <faultcode>soapenv:Server.userException</faultcode>

                    <faultstring>org.xml.sax.SAXException: Bad envelope tag:  value</faultstring>

                    <detail>

                      <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">DWREM1xx1</ns1:hostname>

                    </detail>

                  </soapenv:Fault>

                </soapenv:Body>

              </soapenv:Envelope>

            </soap-response>]

             

            I have run that web-service in SOAP UI, it's working perfectly fine. i have copied the same SOAP envelope from it.

             

            do you have any idea about this..?

             

            Thanks in Advance.

            • 3. Re: Make soap request method two error
              Aryan Anantwar

              Hi,

               

              can't tell exactly what's the issue unless checking the adapter request.

              Would be great if you can share the adapter request from logs for which the above response received.

               

              Regards,

              Aryan Anantwar

              • 4. Re: Make soap request method two error
                Pratik Kumbhare

                Aryan Anantwar

                 

                Below is the adapter request..

                 

                [TEXT=Adapter request]

                [adapter request=

                <request-data>

                  <soap-rpc-request>

                    <use-ssl-certificate>false</use-ssl-certificate>

                    <install-certificate>false</install-certificate>

                    <allow-unsigned-certificate>false</allow-unsigned-certificate>

                    <passphrase>****MASKED****</passphrase>

                    <http-connection-properties>

                      <SoapAction>POST</SoapAction>

                      <Content-Type>XML</Content-Type>

                    </http-connection-properties>

                    <username>pratik.kumbhare</username>

                    <password>****MASKED****</password>

                    <transport>https-rpc</transport>

                    <soap-url>https://dwrm1xx1/arsys/services/ARService?server=dwrm1xx3&webService=OutageCategorizationConfigWS</soap-url>

                    <character-set />

                    <download-attachments>false</download-attachments>

                    <soap-message>

                      <value><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:OutageCategorizationConfigWS">

                   <soapenv:Header>

                      <urn:AuthenticationInfo>

                         <urn:userName>pratik.kumbhare</urn:userName>

                         <urn:password>****MASKED****</urn:password>

                         <!--Optional:-->

                         <urn:authentication>?</urn:authentication>

                         <!--Optional:-->

                         <urn:locale>?</urn:locale>

                         <!--Optional:-->

                         <urn:timeZone>?</urn:timeZone>

                      </urn:AuthenticationInfo>

                   </soapenv:Header>

                   <soapenv:Body>

                      <urn:OutageCategorizationConfigCreate>

                         <urn:Submitter>$USER$</urn:Submitter>

                         <!--Optional:-->

                         <urn:Assigned_To>?</urn:Assigned_To>

                         <urn:Status>Proposed</urn:Status>

                         <urn:Short_Description>$USER$</urn:Short_Description>

                         <!--Optional:-->

                         <urn:Outage_Tier_1>K1</urn:Outage_Tier_1>

                         <!--Optional:-->

                         <urn:Outage_Tier_2>K2</urn:Outage_Tier_2>

                         <!--Optional:-->

                         <urn:Outage_Tier_3>K3</urn:Outage_Tier_3>

                         <!--Optional:-->

                         <urn:z1D_Validation>?</urn:z1D_Validation>

                      </urn:OutageCategorizationConfigCreate>

                   </soapenv:Body>

                </soapenv:Envelope></value>

                    </soap-message>

                  </soap-rpc-request>

                </request-data>]

                • 5. Re: Make soap request method two error
                  Pratik Kumbhare

                  Aryan Anantwar

                   

                  Issue get sorted... Thanks Very much..

                  appreciate your help...

                   

                  • 6. Re: Make soap request method two error
                    Aryan Anantwar

                    Mark the question/discussion solved.