axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Illsley <david.ills...@uk.ibm.com>
Subject Re: [Axis2] 1.0 Addressing issues when access ASP.NET2.0
Date Wed, 05 Jul 2006 07:33:54 GMT
You can set the WSAddressing version in your client to 2004/08 by calling
options.setProperty(org.apache.axis2.addressing.AddressingContants.
WS_ADDRESSING_VERSION,org.apache.axis2.addressing
.AddressingContants.Submission.WSA_NAMESPACE); on your Options object.

Hope that helps,
David

"Wang, Jason" <Jason.Wang@delta.com> wrote on 07/05/2006 12:20:36 AM:

> Hi, 
> I have a urgent question. 
> I tried to use Axis2 client with WS-Security to call APS.NET2.0 
> WSE3.0 Web Service. 
> I noticed that Axis2 addressing module created addressing block using 
wsa="
> http://www.w3.org/2005/08/addressing, 
> and ASP.NET expect http://schemas.xmlsoap.org/ws/2004/08/addressing. 
> looks like the Axis2 used more recent ws addressing specification. 
> How can I configure the Axis2 addressing module using the same 
> specification as ASP.NET? 
> 
> When the Axis2 client call APS.NET2.0 Web Service, I got following 
> error message from ASP.NET : 
> ====================================== 
> org.apache.axis2.AxisFault: System.Web.Services.Protocols.
> SoapHeaderException: Server unavailable, please try later 
> ---> System.ApplicationException: WSE841: An error occured 
> processing an outgoing fault response. 
> ---> System.Web.Services.Protocols.SoapHeaderException: Microsoft.
> Web.Services3.Security.SecurityFault: 
> Header http://schemas.xmlsoap.org/ws/2004/08/addressing:Action for 
> ultimate recipient is required but not present in the message.
> ====================================== 
> And the Soap message send from the client like below, 
> 
> <soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
>                 xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" 
>                 xmlns:wsa="http://www.w3.org/2005/08/addressing"> 
>         <soapenv:Header> 
>                 *********** 
>                 <wsa:To>http://localhost:4071/dnswebservice/Service.asmx
> </wsa:To> 
>                 <wsa:ReplyTo> 
>                         <wsa:Address>http://www.w3.
> org/2005/08/addressing/anonymous</wsa:Address> 
>                 </wsa:ReplyTo> 
>                 <wsa:MessageID>urn:uuid:
> 2284DB461796A2D85611520498383641</wsa:MessageID> 
>                 <wsa:Action>http://tempuri.org/HelloWorld</wsa:Action> 
>         </soapenv:Header> 
>         <soapenv:Body xmlns:wsu="http://docs.oasis-open.
> org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:
> Id="id-10973446">
>                 ********** 
>         </soapenv:Body> 
> </soapenv:Envelope> 
> 
> Please help. 
> Thanks for your time. 
> Jason 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message