[Xml-compile] Basic authorisation

Kieron Johnson ao7one at gmail.com
Wed Dec 4 11:49:13 GMT 2013


Can you guys assist?

I'm struggling to see how to perform basic authorisation on a Soap call
with xml compile. I've looked at WSS thinking basic authentication was the
same thing and it seems it isn't.

Testing the service I need to call in soapUI shows the following http log.
So I need to insert the "Authorization: Basic" line into my call. Any ideas
how?

Thanks

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "POST /Broker HTTP/1.1[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "Accept-Encoding:
gzip,deflate[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "Content-Type:
text/xml;charset=3DUTF-8[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "SOAPAction:
"UpdateRequestMachineStatus"[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "User-Agent: Jakarta
Commons-HttpClient/3.1[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "Content-Length: 972[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "Authorization: Basic
RjU0TMODpjaGFzTEyMw=3D=3D[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "Host:myserver.net[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "<soapenv:Envelope xmlns:soapenv=3D"
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:net=3D"net.server.broker">[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "   <soapenv:Header/>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "   <soapenv:Body>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<net:UpdateRequestMachineStatus>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "         <!--Optional:-->[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "         <net:RequestStatus>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<errorCode>?</errorCode>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<machineId>e5ae0e4d-d63a-4afe-9177-8958dec7</machineId>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "            <message>RequestID 1234
to build 1234 is in progress</message>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<statusCode>InProgress</statusCode>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<timestamp>2013-08-14T07:15:09.857Z</timestamp>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<transactionID>4980</transactionID>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "            <correlations>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<sourceSystemID>?</sourceSystemID>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<sourceSystemName>?</sourceSystemName>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<!--Optional:-->[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
<transactionID>?</transactionID>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "            </correlations>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
</net:RequestStatus>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "
</net:UpdateRequestMachineStatus>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "   </soapenv:Body>[\r][\n]"

Wed Dec 04 09:41:07 GMT 2013:DEBUG:>> "</soapenv:Envelope>"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "Date: Wed, 04 Dec 2013
04:41:08 GMT[\r][\n]"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "Server: Mule EE Core
Extensions/3.3.2[\r][\n]"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "Content-Type: text/xml;
charset=3DUTF-8[\r][\n]"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "X-MULE_SESSION:
rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmFNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmF=
saWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jbdHJ1Y3QvRmxvd0NvbnN0cnVjd=
DtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVs=
ZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACQzM2M3OThiMS01Y2M4LTExZTM=
tOGFiNS0yMTBlM2JjNzJwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYX=
Abc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT=
2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4A=
AwAAeHB3DD9AAAAAAAAQAAAAAHhxAH4ACXh4[\r][\n]"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "http.method: POST[\r][\n]"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "X-MULE_ENCODING: UTF-8[\r][\n]"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "Transfer-Encoding: chunked[\r][\n]"

Wed Dec 04 09:41:08 GMT 2013:DEBUG:<< "[\r][\n]"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20131204/cf=
e8a6c7/attachment.htm


More information about the Xml-compile mailing list