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: [EMAIL PROTECTED]> To: > [email protected]> 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 <[EMAIL PROTECTED]> wrote:> >> > Wsdl > document is in the attachment.Waiting for your help.> >> >> >> > > ________________________________> > > Date: Sat, 22 Sep 2007 08:29:59 -0400> > > > From: [EMAIL PROTECTED]> > > To: [email protected]> > > Subject: Re: > Axis2 access .net web service> > >> > > Please provide the WSDL.> > >> > > Anne> > >> > > On 9/22/07, zhrb <[EMAIL PROTECTED]> 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:> > [EMAIL PROTECTED]> > > > For additiona l commands, e-mail: [EMAIL PROTECTED]> > > >> > > >> >> > ________________________________> > Windows Live Writer 让您告别龟速网络,轻松写日志! 立即使用!> > ---------------------------------------------------------------------> > To unsubscribe, e-mail: [EMAIL PROTECTED]> > For additional commands, e-mail: [EMAIL PROTECTED]> >> > _________________________________________________________________ MSN 中文网,最新时尚生活资讯,白领聚集门户。 http://cn.msn.com
