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 Eben Bruyns <ge...@gmail.com> on 2007/08/24 05:43:33 UTC

[axis2]

Hi Guys,

I'm currently struggling with getting a web service client to make a
call that contains an xs:anytype node.

I can see the node being populated when I serialize the object I pass
into the method call.

I get an exception with this message:

"Parser has already reached end of the document. No siblings found""

I am using Axis2 1.2 with the eclipse
wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip toolset.

I'm also running on the latest Sun JVM

java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)

I have not been able to find anything via a google search regarding
this error message, any help would be much appreciated.

Regards,

Eben Bruyns

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


Re: [axis2]

Posted by Amila Suriarachchi <am...@gmail.com>.
http://ws.apache.org/axis2/1_0/userguide2.html#Writing_Web_Services_Using%20Axis2's_Primary_APIs
http://ws.apache.org/axis2/1_0/userguide3.html#Writing_Web_Service_Clients_using_Axis2's_Primary_APIs

above two links show how you can send xml and receive using row xml.

Amila.

On 8/26/07, Lahiru Sandakith <sa...@gmail.com> wrote:
>
>
>
> On 8/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
> >
> >
> >
> > On 8/24/07, Eben Bruyns <geek01@gmail.com > wrote:
> > >
> > > I've tried both ways.
> >
> >
> > For codegen can you try with the wsdl2java with adb with a nighly build?
> >
>
>
> You can point the latest nightly build from the eclipse axis2 preferences
> and then codegen..
>
>
>  I've created an xml document that I read into an OMDOMDocument and
> > > grabbed the documentElement from that.
> >
> >
>
> I can't unders tand  why you want to do this.
> > you can create an OMElement using OMAbstractFactory.getOMFactory()
> >
> > and set attributes and element using it.
> >
> > if you can send me the schema part for that element I'll write a sample
> > for you.
> >
> > Amila.
> >
> > Is there a trick I'm missing?
> > >
> > > On 8/24/07, Amila Suriarachchi <amilasuriarachchi@gmail.com > wrote:
> > > > how are you going to access the web service?
> > > > with generated code or directly using the Service client interface?
> > > >
> > > > Amila.
> > > >
> > > >
> > > > On 8/24/07, Eben Bruyns <ge...@gmail.com> wrote:
> > > > >
> > > > > Hi Guys,
> > > > >
> > > > > I'm currently struggling with getting a web service client to make
> > > a
> > > > > call that contains an xs:anytype node.
> > > > >
> > > > > I can see the node being populated when I serialize the object I
> > > pass
> > > > > into the method call.
> > > > >
> > > > > I get an exception with this message:
> > > > >
> > > > > "Parser has already reached end of the document. No siblings
> > > found""
> > > > >
> > > > > I am using Axis2 1.2 with the eclipse
> > > > > wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip toolset.
> > > > >
> > > > > I'm also running on the latest Sun JVM
> > > > >
> > > > > java version "1.6.0_02"
> > > > > Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
> > > > > Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode,
> > > sharing)
> > > > >
> > > > > I have not been able to find anything via a google search
> > > regarding
> > > > > this error message, any help would be much appreciated.
> > > > >
> > > > > Regards,
> > > > >
> > > > > Eben Bruyns
> > > > >
> > > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Amila Suriarachchi,
> > > > WSO2 Inc.
> > >
> > >
> > > --
> > > .E
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Amila Suriarachchi,
> > WSO2 Inc.
>
>
>
>
> --
> Thanks
> Lahiru Sandakith
>
> http://sandakith.wordpress.com/
> GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F




-- 
Amila Suriarachchi,
WSO2 Inc.

Re: [axis2]

Posted by Lahiru Sandakith <sa...@gmail.com>.
On 8/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
>
>
>
> On 8/24/07, Eben Bruyns <ge...@gmail.com> wrote:
> >
> > I've tried both ways.
>
>
> For codegen can you try with the wsdl2java with adb with a nighly build?
>


You can point the latest nightly build from the eclipse axis2 preferences
and then codegen..


I've created an xml document that I read into an OMDOMDocument and
> > grabbed the documentElement from that.
>
>

I can't unders tand  why you want to do this.
> you can create an OMElement using OMAbstractFactory.getOMFactory()
>
> and set attributes and element using it.
>
> if you can send me the schema part for that element I'll write a sample
> for you.
>
> Amila.
>
> Is there a trick I'm missing?
> >
> > On 8/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
> > > how are you going to access the web service?
> > > with generated code or directly using the Service client interface?
> > >
> > > Amila.
> > >
> > >
> > > On 8/24/07, Eben Bruyns <ge...@gmail.com> wrote:
> > > >
> > > > Hi Guys,
> > > >
> > > > I'm currently struggling with getting a web service client to make a
> >
> > > > call that contains an xs:anytype node.
> > > >
> > > > I can see the node being populated when I serialize the object I
> > pass
> > > > into the method call.
> > > >
> > > > I get an exception with this message:
> > > >
> > > > "Parser has already reached end of the document. No siblings found""
> > > >
> > > > I am using Axis2 1.2 with the eclipse
> > > > wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip toolset.
> > > >
> > > > I'm also running on the latest Sun JVM
> > > >
> > > > java version "1.6.0_02"
> > > > Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
> > > > Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
> > > >
> > > > I have not been able to find anything via a google search regarding
> > > > this error message, any help would be much appreciated.
> > > >
> > > > Regards,
> > > >
> > > > Eben Bruyns
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Amila Suriarachchi,
> > > WSO2 Inc.
> >
> >
> > --
> > .E
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.




-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F

J2ME and Axis2

Posted by Anton Zhilin <an...@gmail.com>.
Hi!

Some exotic question. Is it possible to deploy Axis2 service (not client!)
+XMLBeans (preferable or may be other binding) to J2ME CDC, providing there
is working servlet-container?

Best regards,
Anton



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


Re: [axis2]

Posted by Eben Bruyns <ge...@gmail.com>.
I just need an example of how to send any bit of XML through a web
service as a generic payload.

I come from a Microsoft background and this is the technique used in
that world, now I fully understand that the 2 worlds are like
opposites but when I saw the generated code I thought I'd give it a
crack.

On 8/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
>
>
> On 8/24/07, Eben Bruyns <ge...@gmail.com> wrote:
> > I've tried both ways.
>
> For codegen can you try with the wsdl2java with adb with a nighly build?
>
> > I've created an xml document that I read into an OMDOMDocument and
> > grabbed the documentElement from that.
>
> I can't unders tand  why you want to do this.
> you can create an OMElement using OMAbstractFactory.getOMFactory()
>
> and set attributes and element using it.
>
> if you can send me the schema part for that element I'll write a sample for
> you.
>
> Amila.
>
> > Is there a trick I'm missing?
> >
> > On 8/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
> > > how are you going to access the web service?
> > > with generated code or directly using the Service client interface?
> > >
> > > Amila.
> > >
> > >
> > > On 8/24/07, Eben Bruyns <ge...@gmail.com> wrote:
> > > >
> > > > Hi Guys,
> > > >
> > > > I'm currently struggling with getting a web service client to make a
> > > > call that contains an xs:anytype node.
> > > >
> > > > I can see the node being populated when I serialize the object I pass
> > > > into the method call.
> > > >
> > > > I get an exception with this message:
> > > >
> > > > "Parser has already reached end of the document. No siblings found""
> > > >
> > > > I am using Axis2 1.2 with the eclipse
> > > > wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip
> toolset.
> > > >
> > > > I'm also running on the latest Sun JVM
> > > >
> > > > java version "1.6.0_02"
> > > > Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
> > > > Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
> > > >
> > > > I have not been able to find anything via a google search regarding
> > > > this error message, any help would be much appreciated.
> > > >
> > > > Regards,
> > > >
> > > > Eben Bruyns
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Amila Suriarachchi,
> > > WSO2 Inc.
> >
> >
> > --
> > .E
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.


-- 
.E

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


Re: [axis2]

Posted by Amila Suriarachchi <am...@gmail.com>.
On 8/24/07, Eben Bruyns <ge...@gmail.com> wrote:
>
> I've tried both ways.


For codegen can you try with the wsdl2java with adb with a nighly build?

I've created an xml document that I read into an OMDOMDocument and
> grabbed the documentElement from that.


I can't unders tand  why you want to do this.
you can create an OMElement using OMAbstractFactory.getOMFactory()

and set attributes and element using it.

if you can send me the schema part for that element I'll write a sample for
you.

Amila.

Is there a trick I'm missing?
>
> On 8/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
> > how are you going to access the web service?
> > with generated code or directly using the Service client interface?
> >
> > Amila.
> >
> >
> > On 8/24/07, Eben Bruyns <ge...@gmail.com> wrote:
> > >
> > > Hi Guys,
> > >
> > > I'm currently struggling with getting a web service client to make a
> > > call that contains an xs:anytype node.
> > >
> > > I can see the node being populated when I serialize the object I pass
> > > into the method call.
> > >
> > > I get an exception with this message:
> > >
> > > "Parser has already reached end of the document. No siblings found""
> > >
> > > I am using Axis2 1.2 with the eclipse
> > > wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip toolset.
> > >
> > > I'm also running on the latest Sun JVM
> > >
> > > java version "1.6.0_02"
> > > Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
> > > Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
> > >
> > > I have not been able to find anything via a google search regarding
> > > this error message, any help would be much appreciated.
> > >
> > > Regards,
> > >
> > > Eben Bruyns
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> > --
> > Amila Suriarachchi,
> > WSO2 Inc.
>
>
> --
> .E
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Re: [axis2]

Posted by Eben Bruyns <ge...@gmail.com>.
I've tried both ways.

I've created an xml document that I read into an OMDOMDocument and
grabbed the documentElement from that.

Is there a trick I'm missing?

On 8/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
> how are you going to access the web service?
> with generated code or directly using the Service client interface?
>
> Amila.
>
>
> On 8/24/07, Eben Bruyns <ge...@gmail.com> wrote:
> >
> > Hi Guys,
> >
> > I'm currently struggling with getting a web service client to make a
> > call that contains an xs:anytype node.
> >
> > I can see the node being populated when I serialize the object I pass
> > into the method call.
> >
> > I get an exception with this message:
> >
> > "Parser has already reached end of the document. No siblings found""
> >
> > I am using Axis2 1.2 with the eclipse
> > wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip toolset.
> >
> > I'm also running on the latest Sun JVM
> >
> > java version "1.6.0_02"
> > Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
> > Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
> >
> > I have not been able to find anything via a google search regarding
> > this error message, any help would be much appreciated.
> >
> > Regards,
> >
> > Eben Bruyns
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.


-- 
.E

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


Re: [axis2]

Posted by Amila Suriarachchi <am...@gmail.com>.
how are you going to access the web service?
with generated code or directly using the Service client interface?

Amila.

On 8/24/07, Eben Bruyns <ge...@gmail.com> wrote:
>
> Hi Guys,
>
> I'm currently struggling with getting a web service client to make a
> call that contains an xs:anytype node.
>
> I can see the node being populated when I serialize the object I pass
> into the method call.
>
> I get an exception with this message:
>
> "Parser has already reached end of the document. No siblings found""
>
> I am using Axis2 1.2 with the eclipse
> wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip toolset.
>
> I'm also running on the latest Sun JVM
>
> java version "1.6.0_02"
> Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
> Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
>
> I have not been able to find anything via a google search regarding
> this error message, any help would be much appreciated.
>
> Regards,
>
> Eben Bruyns
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.