Soap message w/http authorization question...




I'm new to using WSE and sending SOAP messages - and I'm trying to
figure out how to incorporate Http authorization. I am trying to send
a SOAP envelope to a web service that requires http authorization and
follows basic credential format, and I'm not really sure what I need
to do.

I've been looking at the WSE samples from Microsoft, and have an
understanding of what I need to do to build the message with the
SoapSender & SoapEnvelope classes, but how would I attach the
credential/login/password information? Here is what needs to go with
the SOAP envelope:

POST /MyLocation/Directory HTTP/1.1
SOAPAction: ""
Authorization: Basic
User-Agent: Java/1.4.2_08
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 366
[SOAP envelope]

Can anyone point me to any samples or information how this would be
incorporated into the SOAPEnvelope object?

Thanks for any help,
(e-mail address removed)


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question