axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Afkham Azeez" <afk...@gmail.com>
Subject Re: Axis2 client request to IIS 5.0 returns a 500 error.
Date Thu, 01 Jan 2009 12:26:59 GMT
If you look at the second request, there is a custom SOAP header that is
sent (some sort of custom authentication/UsernameToken protocol, not
WS-Sec). I assume that this header is validated on the server side.

On the Axis2 client you may need to set this custom header before sending
the request.

HTH
Azeez

On Thu, Jan 1, 2009 at 1:47 AM, excess2 <gaforgy@yahoo.com> wrote:

>
> I need to use a web service residing on IIS 5.0 using axis2.
>
> The ws returns a 500 error.
>
> There must be something wrong with my request but I can't figure out the
> problem.
>
> The outgoing request looks like this (captured from wireshark).
>
> POST
>
> /arsys/services/ARService?server=arsp002.us.primus&webService=VOIP_SIP_Trouble_Ticket
> HTTP/1.0
>
> Content-Type: text/xml; charset=UTF-8
>
> SOAPAction: "urn:VOIP_SIP_Trouble_Ticket10/OpGet"
>
> User-Agent: Axis2
>
> Host: mcldevmidt01.us.primus
>
> Content-Length: 556
>
>
>
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "><soapenv:Header><ns1:AuthenticationInfo
> xmlns:ns1="urn:VOIP_SIP_Trouble_Ticket10"
>
> soapenv:mustUnderstand="0"><ns1:userName>Glen</ns1:userName><ns1:password>glen</ns1:password><ns1:locale></ns1:locale><ns1:timeZone></ns1:timeZone></ns1:AuthenticationInfo></soapenv:Header><soapenv:Body><ns1:OpGet
>
> xmlns:ns1="urn:VOIP_SIP_Trouble_Ticket10"><ns1:Ticket_Number>SIP000000000001</ns1:Ticket_Number></ns1:OpGet></soapenv:Body></soapenv:Envelope>
>
> A working request from another project that uses weblogic looks like this
>
> POST
> /arsys/services/ARService?server=arsp002&webService=VOIP_SIP_Trouble_Ticket
> HTTP/1.0
>
> User-Agent: BEA WLW 8.1
>
> Content-Type: text/xml; charset=UTF-8
>
> SOAPAction: "urn:VOIP_SIP_Trouble_Ticket10/OpGet"
>
> Accept: application/soap+xml, text/xml, application/xml, */*
>
> Host: mcldevmidt01.us.primus
>
> Connection: Keep-Alive
>
> Content-Length: 900
>
>
>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Header
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "><urn:AuthenticationInfo
> xmlns:urn="urn:VOIP_SIP_Trouble_Ticket"><aut:userName
> xmlns:aut="AuthenticationInfo">Glen</aut:userName><aut:password
> xmlns:aut="AuthenticationInfo">glen</aut:password><aut:locale
> xmlns:aut="AuthenticationInfo"/><aut:timeZone
> xmlns:aut="AuthenticationInfo"/><aut:authentication
> xmlns:aut="AuthenticationInfo"/></urn:AuthenticationInfo></soapenv:Header>
> <SOAP-ENV:Body>
> <ns:OpGet xmlns:ns="urn:VOIP_SIP_Trouble_Ticket10"><ns:Ticket_Number
>
> xmlns:ns="urn:VOIP_SIP_Trouble_Ticket10">SIP000000000001</ns:Ticket_Number></ns:OpGet></SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> My question is what's wrong with the first request (which fails with a 500
> from the server) compared to the second one which works.
>
> Thanks for any assistance you might provide.
>
> G
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Axis2-client-request-to-IIS-5.0-returns-a-500-error.-tp21236655p21236655.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


-- 
Thanks
Afkham Azeez

Blog: http://afkham.org
Developer Portal: http://www.wso2.org
WSAS Blog: http://wso2wsas.blogspot.com
Company: http://wso2.com
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

Mime
View raw message