0

In an existing web service application(asmx services) I need to add new service which will be called through SOAP(java client), and it looks some thing like this

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pus="http://www.example.org/pusheventservice/">
    <soapenv:Header>
        <pus:WSSecurity>
            <Credentials>
                <Username>someuser</Username>
                <Password>somepwd</Password>
            <Credentials>
        </pus:WSSecurity>
        <PUS:ServiceHeader>
            <PUS:TransactionID>101</PUS:TransactionID>
            <PUS:TransactionDate>2014/12/21</PUS:TransactionDate>
            <PUS:TransactionTime>14:54</PUS:TransactionTime>

I Inherited class class ServiceHeader: SoapHeader having username,password, TransactionId... and mention [SoapHeader("userCredentials", Direction = SoapHeaderDirection.InOut)] with WebMethod. but my resultant soap message is not be same as above.

What are the steps need to be done..

John Saunders
  • 160,644
  • 26
  • 247
  • 397

0 Answers0