You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by shantanu chawla <sh...@gmail.com> on 2006/09/30 01:02:26 UTC
[axis2] stub generated by axis 2 is not compiling but stub generated by axis 1.4 works fine.
I am testing .net webservice interoperability using axis 1.4 and axis2.
While I can access the webservice using axis1.4 and my axis1.4 client
works fine but when I generate the client stubs using axis2 it is not
compiling. In my client stub generated by axis 2 code generatorI am
having this error :unreachable code at --> line.
//Unknown style!! No code is generated
throw new UnsupportedOperationException("Unknown Style");
// create message context with that soap envelope
--> org.apache.axis2.context.MessageContext _messageContext = new
org.apache.axis2.context.MessageContext();
_messageContext.setEnvelope(env);
This webservice is built on .NET 1.1 and WSE 2.0.
Any pointers wht can be wrong.
Shantanu
--
Graduate Student
Department of Computer Science,
San Diego State University
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] stub generated by axis 2 is not compiling but stub
generated by axis 1.4 works fine.
Posted by Manuel Ernstberger <ME...@gmx.de>.
Hello Shantanu,
I just had the same problem. But then I realized that in my wsdl the style was wrong. After setting it to "document", the stub worked alright.
Regards,
Manuel
-------- Original-Nachricht --------
Datum: Fri, 29 Sep 2006 16:02:26 -0700
Von: "shantanu chawla" <sh...@gmail.com>
An: axis-user@ws.apache.org
Betreff: [axis2] stub generated by axis 2 is not compiling but stub generated by axis 1.4 works fine.
> I am testing .net webservice interoperability using axis 1.4 and axis2.
> While I can access the webservice using axis1.4 and my axis1.4 client
> works fine but when I generate the client stubs using axis2 it is not
> compiling. In my client stub generated by axis 2 code generatorI am
> having this error :unreachable code at --> line.
>
>
> //Unknown style!! No code is generated
> throw new UnsupportedOperationException("Unknown Style");
>
> // create message context with that soap envelope
> --> org.apache.axis2.context.MessageContext _messageContext = new
> org.apache.axis2.context.MessageContext();
> _messageContext.setEnvelope(env);
>
> This webservice is built on .NET 1.1 and WSE 2.0.
>
> Any pointers wht can be wrong.
>
> Shantanu
> --
> Graduate Student
> Department of Computer Science,
> San Diego State University
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] stub generated by axis 2 is not compiling but stub generated by axis 1.4 works fine.
Posted by shantanu chawla <sh...@gmail.com>.
yes I am using nightly builds.
now I am getting these errors.
org.apache.neethi cannot be resolved to a type
method addHeadersToEnvelope(SOAPEnvelope) is undefined for the _serviceClient
The method getNamespaceURI() is undefined for the type OMNamespace
I cant find class org.apache.neethi in neethi.jar.
Shantanu
On 9/29/06, Anne Thomas Manes <at...@gmail.com> wrote:
> Are you using the latest build?
>
> On 9/29/06, shantanu chawla <sh...@gmail.com> wrote:
> > I am testing .net webservice interoperability using axis 1.4 and axis2.
> > While I can access the webservice using axis1.4 and my axis1.4 client
> > works fine but when I generate the client stubs using axis2 it is not
> > compiling. In my client stub generated by axis 2 code generatorI am
> > having this error :unreachable code at --> line.
> >
> >
> > //Unknown style!! No code is generated
> > throw new UnsupportedOperationException("Unknown Style");
> >
> > // create message context with that soap envelope
> > --> org.apache.axis2.context.MessageContext _messageContext = new
> > org.apache.axis2.context.MessageContext();
> > _messageContext.setEnvelope(env);
> >
> > This webservice is built on .NET 1.1 and WSE 2.0.
> >
> > Any pointers wht can be wrong.
> >
> > Shantanu
> > --
> > Graduate Student
> > Department of Computer Science,
> > San Diego State University
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Graduate Student
Department of Computer Science,
San Diego State University
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] stub generated by axis 2 is not compiling but stub generated by axis 1.4 works fine.
Posted by Anne Thomas Manes <at...@gmail.com>.
Are you using the latest build?
On 9/29/06, shantanu chawla <sh...@gmail.com> wrote:
> I am testing .net webservice interoperability using axis 1.4 and axis2.
> While I can access the webservice using axis1.4 and my axis1.4 client
> works fine but when I generate the client stubs using axis2 it is not
> compiling. In my client stub generated by axis 2 code generatorI am
> having this error :unreachable code at --> line.
>
>
> //Unknown style!! No code is generated
> throw new UnsupportedOperationException("Unknown Style");
>
> // create message context with that soap envelope
> --> org.apache.axis2.context.MessageContext _messageContext = new
> org.apache.axis2.context.MessageContext();
> _messageContext.setEnvelope(env);
>
> This webservice is built on .NET 1.1 and WSE 2.0.
>
> Any pointers wht can be wrong.
>
> Shantanu
> --
> Graduate Student
> Department of Computer Science,
> San Diego State University
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org