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/22 08:44:20 UTC

Axis2 access .net web service

Hello,  I am now trying to using axis2 as client to access .net web service.  .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,I get the following information:  - Discarding unexpected response: HTTP/1.1 100 ContinueHello World  Could you tell me what's the problem?Axis2 can access .net web service?I am waiting for your help.Thank you!    -Zhang 
_________________________________________________________________
Windows Live Spaces ��������ij�Ա��
http://miaomiaogarden2007.spaces.live.com/

Re: Axis2 access .net web service

Posted by Anne Thomas Manes <at...@gmail.com>.
Also -- please ask these questions on the axis-user list rather than
the axis-dev list.

Anne

On 9/22/07, Anne Thomas Manes <at...@gmail.com> wrote:
> Please provide the WSDL.
>
> Anne
>
> On 9/22/07, zhrb <zh...@hotmail.com> wrote:
> >
> > Hello,
> >
> >  I am now trying to using axis2 as client to access .net web service.
> >
> > .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,I get the
> > following information:
> >
> > - Discarding unexpected response: HTTP/1.1 100 ContinueHello
> >  World
> >
> > Could you tell me what's the problem?Axis2 can access .net web service?I am
> > waiting for your help.Thank you!
> >
> >
> >
> > -Zha ng
> > ________________________________
> > 用 Windows Live Spaces 展示个性自我,与好友分享生活! 了解更多信息!
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
> >
>

RE: Axis2 access .net web service

Posted by zhrb <zh...@hotmail.com>.
WSDL document is in the attachment.This problem has troubled me for days,please help me.Thanks!

> Date: Sat, 22 Sep 2007 08:29:59 -0400> From: atmanes@gmail.com> To: axis-dev@ws.apache.org> Subject: Re: Axis2 access .net web service> > Please provide the WSDL.> > Anne> > On 9/22/07, zhrb <zh...@hotmail.com> wrote:> >> > Hello,> >> > I am now trying to using axis2 as client to access .net web service.> >> > .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,I get the> > following information:> >> > - Discarding unexpected response: HTTP/1.1 100 ContinueHello> > World> >> > Could you tell me what's the problem?Axis2 can access .net web service?I am> > waiting for your help.Thank you!> >> >> >> > -Zha ng> > ________________________________> > �� Windows Live Spaces չʾ�������ң�����ѷ������ �˽������Ϣ��> > ---------------------------------------------------------------------> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache
 .org> > For additional commands, e-mail: axis-dev-help@ws.apache.org> >> >
_________________________________________________________________
�ֻ�Ҳ���� MSN �����ˣ��������԰ɣ�
http://mobile.msn.com.cn/

Re: Axis2 access .net web service

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
zhrb wrote:
> Thank you Anne,I have solved this problem as what you told me.I can 
> receive the param now.But still  appearing the information "- 
> Discarding unexpected response: HTTP/1.1 100 Continue".Does that mean 
> anything wrong?

No. .Net has this habit of first sending "100  Continuee" and then
sending the real response. This message is simply saying that we ignored
that bit.

(I hope you're running with some level of debug? We shouldn't be printing
this message out otherwise!)

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

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


RE: Axis2 access .net web service

Posted by zhrb <zh...@hotmail.com>.
Thank you Anne,I have solved this problem as what you told me.I can receive the param now.But still  appearing the information "- Discarding unexpected response: HTTP/1.1 100 Continue".Does that mean anything wrong?
 
-Zhang



> Date: Sat, 22 Sep 2007 17:52:38 -0400> From: atmanes@gmail.com> To: axis-dev@ws.apache.org> Subject: Re: Axis2 access .net web service> > I believe you are not creating your payload properly.> > I'm not an expert on AXIOM, but I think it should look like this:> > public static OMElement getContentOMElement() {> OMFactory fac = OMAbstractFactory.getOMFactory();> OMNamespace omNs = fac.createOMNamespace("http://tempuri.org/", "");> OMElement method = fac.createOMElement("HelloWorld", omNs);> OMElement value = fac.createOMElement("name", omNs);> value.addChild(fac.createText("zhangsan"));> method.addChild(value);> return method;> > Anne> > On 9/22/07, zhrb <zh...@hotmail.com> wrote:> >> > Wsdl document is in the attachment.Waiting for your help.> >> >> >> > ________________________________> > > Date: Sat, 22 Sep 2007 08:29:59 -0400> > > From: atmanes@gmail.com> > > To: axis-dev@ws.apache.org> > > Subject: Re: Axis2 access .net web service> > >> > > Please provide the WSDL.>
  > >> > > Anne> > >> > > On 9/22/07, zhrb <zh...@hotmail.com> wrote:> > > >> > > > Hello,> > > >> > > > I am now trying to using axis2 as client to access .net web service.> > > >> > > > .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,I get> > the> > > > following information:> > > >> > > > - Discarding unexpected response: HTTP/1.1 100 ContinueHello> > > > World> > > >> > > > Could you tell me what's the problem?Axis2 can access .net web service?I> > am> > > > waiting for your he lp.Thank you!> > > >> > > >> > > >> > > > -Zha ng> > > > ________________________________> > > > 用 Windows Live Spaces 展示个性自我,与好友分享生活! 了解更多信息!> > > >> > ---------------------------------------------------------------------> > > > To unsubscribe, e-mail:> > axis-dev-unsubscribe@ws.apache.org> > > > For additiona
 l commands, e-mail: axis-dev-help@ws.apache.org> > > >> > > >> >> > ________________________________> > Windows Live Writer 让您告别龟速网络,轻松写日志! 立即使用!> > ---------------------------------------------------------------------> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org> > For additional commands, e-mail: axis-dev-help@ws.apache.org> >> >
_________________________________________________________________
MSN 中文网,最新时尚生活资讯,白领聚集门户。
http://cn.msn.com

Re: Axis2 access .net web service

Posted by Anne Thomas Manes <at...@gmail.com>.
I believe you are not creating your payload properly.

I'm not an expert on AXIOM, but I think it should look like this:

    public static OMElement getContentOMElement() {
        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace omNs = fac.createOMNamespace("http://tempuri.org/", "");
        OMElement method = fac.createOMElement("HelloWorld", omNs);
        OMElement value = fac.createOMElement("name", omNs);
        value.addChild(fac.createText("zhangsan"));
        method.addChild(value);
        return method;

Anne

On 9/22/07, zhrb <zh...@hotmail.com> wrote:
>
> Wsdl document is in the attachment.Waiting for your help.
>
>
>
>  ________________________________
>  > Date: Sat, 22 Sep 2007 08:29:59 -0400
> > From: atmanes@gmail.com
> > To: axis-dev@ws.apache.org
> > Subject: Re: Axis2 access .net web service
> >
> > Please provide the WSDL.
> >
> > Anne
> >
> > On 9/22/07, zhrb <zh...@hotmail.com> wrote:
> > >
> > > Hello,
> > >
> > > I am now trying to using axis2 as client to access .net web service.
> > >
> > > .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,I get
> the
> > > following information:
> > >
> > > - Discarding unexpected response: HTTP/1.1 100 ContinueHello
> > > World
> > >
> > > Could you tell me what's the problem?Axis2 can access .net web service?I
> am
> > > waiting for your he lp.Thank you!
> > >
> > >
> > >
> > > -Zha ng
> > > ________________________________
> > > 用 Windows Live Spaces 展示个性自我,与好友分享生活! 了解更多信息!
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> axis-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-dev-help@ws.apache.org
> > >
> > >
>
> ________________________________
> Windows Live Writer 让您告别龟速网络,轻松写日志! 立即使用!
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

RE: Axis2 access .net web service

Posted by zhrb <zh...@hotmail.com>.
Wsdl document is in the attachment.Waiting for your help.

> Date: Sat, 22 Sep 2007 08:29:59 -0400> From: atmanes@gmail.com> To: axis-dev@ws.apache.org> Subject: Re: Axis2 access .net web service> > Please provide the WSDL.> > Anne> > On 9/22/07, zhrb <zh...@hotmail.com> wrote:> >> > Hello,> >> > I am now trying to using axis2 as client to access .net web service.> >> > .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,I get the> > following information:> >> > - Discarding unexpected response: HTTP/1.1 100 ContinueHello> > World> >> > Could you tell me what's the problem?Axis2 can access .net web service?I am> > waiting for your help.Thank you!> >> >> >> > -Zha ng> > ________________________________> > �� Windows Live Spaces չʾ�������ң�����ѷ������ �˽������Ϣ��> > ---------------------------------------------------------------------> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache
 .org> > For additional commands, e-mail: axis-dev-help@ws.apache.org> >> >
_________________________________________________________________
�ֻ�Ҳ���� MSN �����ˣ��������԰ɣ�
http://mobile.msn.com.cn/

Re: Axis2 access .net web service

Posted by Anne Thomas Manes <at...@gmail.com>.
Please provide the WSDL.

Anne

On 9/22/07, zhrb <zh...@hotmail.com> wrote:
>
> Hello,
>
>  I am now trying to using axis2 as client to access .net web service.
>
> .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,I get the
> following information:
>
> - Discarding unexpected response: HTTP/1.1 100 ContinueHello
>  World
>
> Could you tell me what's the problem?Axis2 can access .net web service?I am
> waiting for your help.Thank you!
>
>
>
> -Zha ng
> ________________________________
> 用 Windows Live Spaces 展示个性自我,与好友分享生活! 了解更多信息!
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>