I am working on SOAP client. My WSDL URL is http://localhost:8080/soap/getMessage?wsdl
.
This requires the the following header to specify the username and password.
<wsdl:Envelope xmlns:soap="..."
xmlns:wsse="..." >
<wsdl:Header>
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>admin</wsse:Username>
<wsse:Password>password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</wsdl:Header>
</wsdl:Envelope>
I have to write a program for it.
Can some one help me.
Thanks.
here is my past program for soap. I already modified it to your case.
for further information you can search the google for using SOAP in JDK 1.6