Click here to Skip to main content
15,885,929 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am passing a envelop to web service which takes the ID and password as input along with some message and returns the specific output.

The input envelop I am passing is :
XML
INPUT ENVELOP:

<?xml version='1.0' encoding='utf-8'?>
   <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <soap:Body>
               <GenerateUID xmlns="http://tempuri.org/">
                         <strUploadXML xmlns="">Sample Test Data</strUploadXML>
                         <UserId xmlns="">PSK</UserId>
                         <Password xmlns="">GTU</Password>
                </GenerateUID>
           </soap:Body>
     </soap:Envelope>



As a result of which I am getting a response as:

XML
<?xml version='1.0' encoding='utf-8'?>
     <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
                     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
             <soap:Body>
                  <GenerateUIDResponse xmlns="http://tempuri.org/">
                            <GenerateUIDResult>Authentication failed!</GenerateUIDResult>
                  </GenerateUIDResponse>
             </soap:Body>
      </soap:Envelope>




Is this a valid response because I am not able to identify whether tere is some problem in calling the web service or the web service is returning the message because of wrong user ID and Password.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900