You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by zhrb <zh...@hotmail.com> on 2007/09/24 10:28:21 UTC

"Axis2 access .net web service" again

Hello, I think I have to ask for help.I have ask "axis-user@ws.apache.org for help.But nobody answered my question.Hoping I can get help here.
I am now using axis2 accessing .net web service following samples of "EchoNonBlockingDualClient".The userguide just mentions the condition of both web service and client are based on axis2.But if my web service is .net web service,how should I use Axis2 client to access in the "EchoNonBlockingDualClient" way?  .net web service as follows:   public string HelloWorld(string name)  {     return "Hello World"+name;  }  Axis2 client code is in the attachment.When I run the client code,appearing the following information: org.apache.axis2.AxisFault: Unable to engage module : addressing at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:333) at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:318) at Test.NonBlockingDualClient.main(NonBlockingDualClient.java:47) How should I change the client code?Maybe the "sender.engageModule(new QName(Constants.MODULE_ADDRESSING));"?If so,how to? Waiting for your help.  -Zhang 
_________________________________________________________________
Windows Live Spaces ��������ij�Ա��
http://miaomiaogarden2007.spaces.live.com/

Re: "Axis2 access .net web service" again

Posted by Saminda Abeyruwan <sa...@gmail.com>.
Which version of Axis2 are you using. If you are using the latest Axis2 1.3,
Classes related to addressing and it's module.xml will be available in
axis2-1.3.jar. Thus, you just need to get axis2-1.3.jar in the classpath,
with other 3rd party jars.

Thank you

Saminda

On 9/24/07, zhrb <zh...@hotmail.com> wrote:
>
> Hello,
>
> I think I have to ask for help.I have ask "axis-user@ws.apache.org for
> help.But nobody answered my question.Hoping I can get help here.
> I am now using axis2 accessing .net web service following samples of
> "EchoNonBlockingDualClient".The userguide just mentions the condition of
> both web service and client are based on axis2.But if my web service is
> .net web service,how should I use Axis2 client
>  to access in the "EchoNonBlockingDualClient" way?
>
>  .net web service as follows:
>
>   public string HelloWorld(string name)
>   {
>
>    return "Hello World"+name;
>   }
>
>
> Axis2 client code is in the attachment.When I run the client
> code,appearing the following information:
>
> org.apache.axis2.AxisFault: Unable to engage module : addressing
>  at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java
> :333)
>  at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java
> :318)
>  at Test.NonBlockingDualClient.main(NonBlockingDualClient.java:47)
> &nbsp ;
> How should I change the client code?Maybe the "sender.engageModule(new
> QName(Constants.MODULE_ADDRESSING));"?If so,how to?
>
> Waiting for your help.
>
>
> -Zhang
>
>
> ------------------------------
> 用 Windows Live Spaces 展示个性自我,与好友分享生活! 了解更多信息!<http://spaces.live.com/?page=HP>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org