I downloaded the axis2 nightly build but I am still getting the same errror.

I am using axis2 code generation eclipse plugin to generate the client stub.
but in my  build path i am referencing the axis2 nightly build lib files.

I wonder where and which state is throwing exception. my client code
is like this.

public static void main(String[] args) throws Exception  {

ClientRegistrationStub stub = new ClientRegistrationStub();
                AuthorizeClientDocument doc = 
AuthorizeClientDocument.Factory.newInstance();
                AuthorizeClientResponseDocument resp= stub.AuthorizeClient(doc);
                AuthorizeClientResponseDocument.AuthorizeClientResponse res=
resp.getAuthorizeClientResponse();
                System.out.println(res.toString());
}

Thanks

Shantanu

On 7/11/06, robert lazarski <[EMAIL PROTECTED]> wrote:
Make sure you are using the latest nightlies - axis2 has had several
bugs fixed with xmlbeans:

http://people.apache.org/dist/axis2/nightly/

Also make sure your client can find all the xmlbeans xsb and the one
class files it generates. My wsdl2java looks like this, which I then
make into a jar:


<target name="wsdl2java" depends="clean,prepare">
     <delete dir="output" />
     <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
         <classpath refid="axis.classpath"/>
         <arg value="-d"/>
         <!-- none ??? -->
         <arg value="xmlbeans"/>
         <arg value="-uri"/>
         <arg file="wsdl/Maragato.wsdl"/>
         <arg value="-ss"/>
         <arg value="-ssi"/>
         <arg value="-g"/>
         <arg value="-sd"/>
         <arg value="-o"/>
         <arg file="output"/>
         <arg value="-p"/>
         <arg value="br.com.atlantico.maragato.webservices.endpoint"/>
     </java>

     <!-- Move the schema folder to classpath-->
     <move todir="${build.classes}">
         <fileset dir="output/resources">
             <include name="*schema*/**/*.class"/>
             <include name="*schema*/**/*.xsb"/>
         </fileset>
     </move>

 </target>

HTH,
Robert
http://www.braziloutsource.com/

On 7/11/06, shantanu chawla <[EMAIL PROTECTED]> wrote:
> I am trying to create a webservice client using Axis2. While compiling
> it is giving me this error. Can anyone give any clue related to what
> can be the issue.
>
> Thanks
>
> org.apache.axiom.om.OMException: java.lang.IllegalStateException
>         at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
>         at 
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144)
>         at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:322)
>         at 
test.clientregistration.ClientRegistrationStub.toOM(ClientRegistrationStub.java:498)
>         at 
test.clientregistration.ClientRegistrationStub.toEnvelope(ClientRegistrationStub.java:512)
>         at 
test.clientregistration.ClientRegistrationStub.AuthorizeClient(ClientRegistrationStub.java:102)
>         at shantanu.TestingAxis2.main(TestingAxis2.java:15)
> Caused by: java.lang.IllegalStateException
>         at 
org.apache.xmlbeans.impl.store.Jsr173$XMLStreamReaderForString.next(Jsr173.java:1110)
>         at 
org.apache.xmlbeans.impl.store.Jsr173$SyncedJsr173.next(Jsr173.java:1138)
>         at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
>         at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123)
>         ... 6 more
>
> Shantanu Chawla
> --
> Graduate Student
> Department of Computer Science,
> San Diego State University
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Graduate Student
Department of Computer Science,
San Diego State University

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to