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 Jake Goulding <go...@vivisimo.com> on 2006/10/09 16:07:05 UTC
[axis2] how to get raw XML of result
I'd like to get the raw XML node representing a part of my returned
message. It looks like getOMElement() should be the right thing to call,
but I'm not sure what to pass it.
Can anyone tell me if this is the right thing to be looking at, and if
so, how to use it?
--
JAKE GOULDING
Software Engineer
goulding@vivisimo.com
Vivísimo [Search Done Right]
1710 Murray Avenue
Pittsburgh, PA 15217 USA
tel: +1.412.422.2499 x105
fax: +1.412.422.2495
vivisimo.com clusty.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] how to get raw XML of result
Posted by Jake Goulding <go...@vivisimo.com>.
Ah, quite useful. Thank you!
However, I have a question. The StreamReader seems to be positioned
after the start element:
<container>
<ele></ele> <---- starts at opening element
<ele></ele>
<ele></ele>
</container>
This makes it so that my built OMElement only gets the first child.
Thoughts or suggestions?
Davanum Srinivas wrote:
> See http://today.java.net/pub/a/today/2005/05/10/axiom.html. Section
> "Building from an Existing Source"
>
> -- dims
>
> On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> That seems very promising, thanks! You have any tips on how to use the
>> XmlStreamReader? Preferably, I'd just stick it into a DOM-based
>> structure.
>>
>> Thanks again!
>>
>> Davanum Srinivas wrote:
>> > There are several more options :) Trying to start with the ones you
>> > can maintain w/o too much effort.
>> >
>> > Next on the list, You can get an XMLStreamReader from the ADBBean
>> > using getPullParser, you can check the generated code for the QName
>> > (search for MY_QNAME), use that as the parameter for getPullParser().
>> > This returns the stax javax.xml.stream.XMLStreamReader which you can
>> > use to do whatever you want.
>> >
>> > Example:
>> > XMLStreamReader reader = myBean.getPullParser(myBean.MY_QNAME);
>> >
>> > -- dims
>> >
>> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> >> I assume that there is no middle ground? Some way of getting the raw
>> >> version provided by -d and the functions from the databinding? Or
>> can I
>> >> not have my cake and eat it too?
>> >>
>> >> Thanks!
>> >>
>> >> Davanum Srinivas wrote:
>> >> > The second option is to run wsdl2java with "-d none" which does not
>> >> > generate any databinding at all and you have complete control.
>> So you
>> >> > will have to construct the request by hand and you get full control
>> >> > over the response as well.
>> >> >
>> >> > -- dims
>> >> >
>> >> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> >> >> Well, I don't control the WSDL (Microsoft Sharepoint). I could
>> modify
>> >> >> the WSDL by hand, and make it different from the actual WSDL, but
>> >> that
>> >> >> seems kind of nasty, but I can do it if need be. Any other
>> options?
>> >> >>
>> >> >> Thanks!
>> >> >>
>> >> >> Davanum Srinivas wrote:
>> >> >> > Typically, we ask you to specify that as xsd:any and the codegen
>> >> >> > creates an OMElement as the method param or java bean param
>> >> which you
>> >> >> > can then use to get your data.
>> >> >> >
>> >> >> > Is it possible for you to do this?
>> >> >> >
>> >> >> > -- dims
>> >> >> >
>> >> >> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> >> >> >> I'd like to get the raw XML node representing a part of my
>> >> returned
>> >> >> >> message. It looks like getOMElement() should be the right
>> thing to
>> >> >> call,
>> >> >> >> but I'm not sure what to pass it.
>> >> >> >>
>> >> >> >> Can anyone tell me if this is the right thing to be looking at,
>> >> >> and if
>> >> >> >> so, how to use it?
>> >> >> >>
>> >> >> >> --
>> >> >> >>
>> >> >> >> JAKE GOULDING
>> >> >> >> Software Engineer
>> >> >> >> goulding@vivisimo.com
>> >> >> >>
>> >> >> >> Vivísimo [Search Done Right™]
>> >> >> >> 1710 Murray Avenue
>> >> >> >> Pittsburgh, PA 15217 USA
>> >> >> >> tel: +1.412.422.2499 x105
>> >> >> >> fax: +1.412.422.2495
>> >> >> >> vivisimo.com clusty.com
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >>
>> >> >> JAKE GOULDING
>> >> >> Software Engineer
>> >> >> goulding@vivisimo.com
>> >> >>
>> >> >> Vivísimo [Search Done Right]
>> >> >> 1710 Murray Avenue
>> >> >> Pittsburgh, PA 15217 USA
>> >> >> tel: +1.412.422.2499 x105
>> >> >> fax: +1.412.422.2495
>> >> >> vivisimo.com clusty.com
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >>
>> >> JAKE GOULDING
>> >> Software Engineer
>> >> goulding@vivisimo.com
>> >>
>> >> Vivísimo [Search Done Right]
>> >> 1710 Murray Avenue
>> >> Pittsburgh, PA 15217 USA
>> >> tel: +1.412.422.2499 x105
>> >> fax: +1.412.422.2495
>> >> vivisimo.com clusty.com
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>>
>> JAKE GOULDING
>> Software Engineer
>> goulding@vivisimo.com
>>
>> Vivísimo [Search Done Right]
>> 1710 Murray Avenue
>> Pittsburgh, PA 15217 USA
>> tel: +1.412.422.2499 x105
>> fax: +1.412.422.2495
>> vivisimo.com clusty.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
--
JAKE GOULDING
Software Engineer
goulding@vivisimo.com
Vivísimo [Search Done Right]
1710 Murray Avenue
Pittsburgh, PA 15217 USA
tel: +1.412.422.2499 x105
fax: +1.412.422.2495
vivisimo.com clusty.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] how to get raw XML of result
Posted by Davanum Srinivas <da...@gmail.com>.
See http://today.java.net/pub/a/today/2005/05/10/axiom.html. Section
"Building from an Existing Source"
-- dims
On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> That seems very promising, thanks! You have any tips on how to use the
> XmlStreamReader? Preferably, I'd just stick it into a DOM-based structure.
>
> Thanks again!
>
> Davanum Srinivas wrote:
> > There are several more options :) Trying to start with the ones you
> > can maintain w/o too much effort.
> >
> > Next on the list, You can get an XMLStreamReader from the ADBBean
> > using getPullParser, you can check the generated code for the QName
> > (search for MY_QNAME), use that as the parameter for getPullParser().
> > This returns the stax javax.xml.stream.XMLStreamReader which you can
> > use to do whatever you want.
> >
> > Example:
> > XMLStreamReader reader = myBean.getPullParser(myBean.MY_QNAME);
> >
> > -- dims
> >
> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> >> I assume that there is no middle ground? Some way of getting the raw
> >> version provided by -d and the functions from the databinding? Or can I
> >> not have my cake and eat it too?
> >>
> >> Thanks!
> >>
> >> Davanum Srinivas wrote:
> >> > The second option is to run wsdl2java with "-d none" which does not
> >> > generate any databinding at all and you have complete control. So you
> >> > will have to construct the request by hand and you get full control
> >> > over the response as well.
> >> >
> >> > -- dims
> >> >
> >> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> >> >> Well, I don't control the WSDL (Microsoft Sharepoint). I could modify
> >> >> the WSDL by hand, and make it different from the actual WSDL, but
> >> that
> >> >> seems kind of nasty, but I can do it if need be. Any other options?
> >> >>
> >> >> Thanks!
> >> >>
> >> >> Davanum Srinivas wrote:
> >> >> > Typically, we ask you to specify that as xsd:any and the codegen
> >> >> > creates an OMElement as the method param or java bean param
> >> which you
> >> >> > can then use to get your data.
> >> >> >
> >> >> > Is it possible for you to do this?
> >> >> >
> >> >> > -- dims
> >> >> >
> >> >> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> >> >> >> I'd like to get the raw XML node representing a part of my
> >> returned
> >> >> >> message. It looks like getOMElement() should be the right thing to
> >> >> call,
> >> >> >> but I'm not sure what to pass it.
> >> >> >>
> >> >> >> Can anyone tell me if this is the right thing to be looking at,
> >> >> and if
> >> >> >> so, how to use it?
> >> >> >>
> >> >> >> --
> >> >> >>
> >> >> >> JAKE GOULDING
> >> >> >> Software Engineer
> >> >> >> goulding@vivisimo.com
> >> >> >>
> >> >> >> Vivísimo [Search Done Right™]
> >> >> >> 1710 Murray Avenue
> >> >> >> Pittsburgh, PA 15217 USA
> >> >> >> tel: +1.412.422.2499 x105
> >> >> >> fax: +1.412.422.2495
> >> >> >> vivisimo.com clusty.com
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >>
> >> >> JAKE GOULDING
> >> >> Software Engineer
> >> >> goulding@vivisimo.com
> >> >>
> >> >> Vivísimo [Search Done Right]
> >> >> 1710 Murray Avenue
> >> >> Pittsburgh, PA 15217 USA
> >> >> tel: +1.412.422.2499 x105
> >> >> fax: +1.412.422.2495
> >> >> vivisimo.com clusty.com
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >>
> >> JAKE GOULDING
> >> Software Engineer
> >> goulding@vivisimo.com
> >>
> >> Vivísimo [Search Done Right]
> >> 1710 Murray Avenue
> >> Pittsburgh, PA 15217 USA
> >> tel: +1.412.422.2499 x105
> >> fax: +1.412.422.2495
> >> vivisimo.com clusty.com
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
>
> --
>
> JAKE GOULDING
> Software Engineer
> goulding@vivisimo.com
>
> Vivísimo [Search Done Right]
> 1710 Murray Avenue
> Pittsburgh, PA 15217 USA
> tel: +1.412.422.2499 x105
> fax: +1.412.422.2495
> vivisimo.com clusty.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
Re: [axis2] how to get raw XML of result
Posted by Jake Goulding <go...@vivisimo.com>.
That seems very promising, thanks! You have any tips on how to use the
XmlStreamReader? Preferably, I'd just stick it into a DOM-based structure.
Thanks again!
Davanum Srinivas wrote:
> There are several more options :) Trying to start with the ones you
> can maintain w/o too much effort.
>
> Next on the list, You can get an XMLStreamReader from the ADBBean
> using getPullParser, you can check the generated code for the QName
> (search for MY_QNAME), use that as the parameter for getPullParser().
> This returns the stax javax.xml.stream.XMLStreamReader which you can
> use to do whatever you want.
>
> Example:
> XMLStreamReader reader = myBean.getPullParser(myBean.MY_QNAME);
>
> -- dims
>
> On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> I assume that there is no middle ground? Some way of getting the raw
>> version provided by -d and the functions from the databinding? Or can I
>> not have my cake and eat it too?
>>
>> Thanks!
>>
>> Davanum Srinivas wrote:
>> > The second option is to run wsdl2java with "-d none" which does not
>> > generate any databinding at all and you have complete control. So you
>> > will have to construct the request by hand and you get full control
>> > over the response as well.
>> >
>> > -- dims
>> >
>> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> >> Well, I don't control the WSDL (Microsoft Sharepoint). I could modify
>> >> the WSDL by hand, and make it different from the actual WSDL, but
>> that
>> >> seems kind of nasty, but I can do it if need be. Any other options?
>> >>
>> >> Thanks!
>> >>
>> >> Davanum Srinivas wrote:
>> >> > Typically, we ask you to specify that as xsd:any and the codegen
>> >> > creates an OMElement as the method param or java bean param
>> which you
>> >> > can then use to get your data.
>> >> >
>> >> > Is it possible for you to do this?
>> >> >
>> >> > -- dims
>> >> >
>> >> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> >> >> I'd like to get the raw XML node representing a part of my
>> returned
>> >> >> message. It looks like getOMElement() should be the right thing to
>> >> call,
>> >> >> but I'm not sure what to pass it.
>> >> >>
>> >> >> Can anyone tell me if this is the right thing to be looking at,
>> >> and if
>> >> >> so, how to use it?
>> >> >>
>> >> >> --
>> >> >>
>> >> >> JAKE GOULDING
>> >> >> Software Engineer
>> >> >> goulding@vivisimo.com
>> >> >>
>> >> >> Vivísimo [Search Done Right™]
>> >> >> 1710 Murray Avenue
>> >> >> Pittsburgh, PA 15217 USA
>> >> >> tel: +1.412.422.2499 x105
>> >> >> fax: +1.412.422.2495
>> >> >> vivisimo.com clusty.com
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >>
>> >> JAKE GOULDING
>> >> Software Engineer
>> >> goulding@vivisimo.com
>> >>
>> >> Vivísimo [Search Done Right]
>> >> 1710 Murray Avenue
>> >> Pittsburgh, PA 15217 USA
>> >> tel: +1.412.422.2499 x105
>> >> fax: +1.412.422.2495
>> >> vivisimo.com clusty.com
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>>
>> JAKE GOULDING
>> Software Engineer
>> goulding@vivisimo.com
>>
>> Vivísimo [Search Done Right]
>> 1710 Murray Avenue
>> Pittsburgh, PA 15217 USA
>> tel: +1.412.422.2499 x105
>> fax: +1.412.422.2495
>> vivisimo.com clusty.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
--
JAKE GOULDING
Software Engineer
goulding@vivisimo.com
Vivísimo [Search Done Right]
1710 Murray Avenue
Pittsburgh, PA 15217 USA
tel: +1.412.422.2499 x105
fax: +1.412.422.2495
vivisimo.com clusty.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] how to get raw XML of result
Posted by Davanum Srinivas <da...@gmail.com>.
There are several more options :) Trying to start with the ones you
can maintain w/o too much effort.
Next on the list, You can get an XMLStreamReader from the ADBBean
using getPullParser, you can check the generated code for the QName
(search for MY_QNAME), use that as the parameter for getPullParser().
This returns the stax javax.xml.stream.XMLStreamReader which you can
use to do whatever you want.
Example:
XMLStreamReader reader = myBean.getPullParser(myBean.MY_QNAME);
-- dims
On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> I assume that there is no middle ground? Some way of getting the raw
> version provided by -d and the functions from the databinding? Or can I
> not have my cake and eat it too?
>
> Thanks!
>
> Davanum Srinivas wrote:
> > The second option is to run wsdl2java with "-d none" which does not
> > generate any databinding at all and you have complete control. So you
> > will have to construct the request by hand and you get full control
> > over the response as well.
> >
> > -- dims
> >
> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> >> Well, I don't control the WSDL (Microsoft Sharepoint). I could modify
> >> the WSDL by hand, and make it different from the actual WSDL, but that
> >> seems kind of nasty, but I can do it if need be. Any other options?
> >>
> >> Thanks!
> >>
> >> Davanum Srinivas wrote:
> >> > Typically, we ask you to specify that as xsd:any and the codegen
> >> > creates an OMElement as the method param or java bean param which you
> >> > can then use to get your data.
> >> >
> >> > Is it possible for you to do this?
> >> >
> >> > -- dims
> >> >
> >> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> >> >> I'd like to get the raw XML node representing a part of my returned
> >> >> message. It looks like getOMElement() should be the right thing to
> >> call,
> >> >> but I'm not sure what to pass it.
> >> >>
> >> >> Can anyone tell me if this is the right thing to be looking at,
> >> and if
> >> >> so, how to use it?
> >> >>
> >> >> --
> >> >>
> >> >> JAKE GOULDING
> >> >> Software Engineer
> >> >> goulding@vivisimo.com
> >> >>
> >> >> Vivísimo [Search Done Right™]
> >> >> 1710 Murray Avenue
> >> >> Pittsburgh, PA 15217 USA
> >> >> tel: +1.412.422.2499 x105
> >> >> fax: +1.412.422.2495
> >> >> vivisimo.com clusty.com
> >> >>
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >>
> >> JAKE GOULDING
> >> Software Engineer
> >> goulding@vivisimo.com
> >>
> >> Vivísimo [Search Done Right]
> >> 1710 Murray Avenue
> >> Pittsburgh, PA 15217 USA
> >> tel: +1.412.422.2499 x105
> >> fax: +1.412.422.2495
> >> vivisimo.com clusty.com
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
>
> --
>
> JAKE GOULDING
> Software Engineer
> goulding@vivisimo.com
>
> Vivísimo [Search Done Right]
> 1710 Murray Avenue
> Pittsburgh, PA 15217 USA
> tel: +1.412.422.2499 x105
> fax: +1.412.422.2495
> vivisimo.com clusty.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
Re: [axis2] how to get raw XML of result
Posted by Jake Goulding <go...@vivisimo.com>.
I assume that there is no middle ground? Some way of getting the raw
version provided by -d and the functions from the databinding? Or can I
not have my cake and eat it too?
Thanks!
Davanum Srinivas wrote:
> The second option is to run wsdl2java with "-d none" which does not
> generate any databinding at all and you have complete control. So you
> will have to construct the request by hand and you get full control
> over the response as well.
>
> -- dims
>
> On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> Well, I don't control the WSDL (Microsoft Sharepoint). I could modify
>> the WSDL by hand, and make it different from the actual WSDL, but that
>> seems kind of nasty, but I can do it if need be. Any other options?
>>
>> Thanks!
>>
>> Davanum Srinivas wrote:
>> > Typically, we ask you to specify that as xsd:any and the codegen
>> > creates an OMElement as the method param or java bean param which you
>> > can then use to get your data.
>> >
>> > Is it possible for you to do this?
>> >
>> > -- dims
>> >
>> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> >> I'd like to get the raw XML node representing a part of my returned
>> >> message. It looks like getOMElement() should be the right thing to
>> call,
>> >> but I'm not sure what to pass it.
>> >>
>> >> Can anyone tell me if this is the right thing to be looking at,
>> and if
>> >> so, how to use it?
>> >>
>> >> --
>> >>
>> >> JAKE GOULDING
>> >> Software Engineer
>> >> goulding@vivisimo.com
>> >>
>> >> Vivísimo [Search Done Right™]
>> >> 1710 Murray Avenue
>> >> Pittsburgh, PA 15217 USA
>> >> tel: +1.412.422.2499 x105
>> >> fax: +1.412.422.2495
>> >> vivisimo.com clusty.com
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>>
>> JAKE GOULDING
>> Software Engineer
>> goulding@vivisimo.com
>>
>> Vivísimo [Search Done Right]
>> 1710 Murray Avenue
>> Pittsburgh, PA 15217 USA
>> tel: +1.412.422.2499 x105
>> fax: +1.412.422.2495
>> vivisimo.com clusty.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
--
JAKE GOULDING
Software Engineer
goulding@vivisimo.com
Vivísimo [Search Done Right]
1710 Murray Avenue
Pittsburgh, PA 15217 USA
tel: +1.412.422.2499 x105
fax: +1.412.422.2495
vivisimo.com clusty.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] how to get raw XML of result
Posted by Davanum Srinivas <da...@gmail.com>.
The second option is to run wsdl2java with "-d none" which does not
generate any databinding at all and you have complete control. So you
will have to construct the request by hand and you get full control
over the response as well.
-- dims
On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> Well, I don't control the WSDL (Microsoft Sharepoint). I could modify
> the WSDL by hand, and make it different from the actual WSDL, but that
> seems kind of nasty, but I can do it if need be. Any other options?
>
> Thanks!
>
> Davanum Srinivas wrote:
> > Typically, we ask you to specify that as xsd:any and the codegen
> > creates an OMElement as the method param or java bean param which you
> > can then use to get your data.
> >
> > Is it possible for you to do this?
> >
> > -- dims
> >
> > On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> >> I'd like to get the raw XML node representing a part of my returned
> >> message. It looks like getOMElement() should be the right thing to call,
> >> but I'm not sure what to pass it.
> >>
> >> Can anyone tell me if this is the right thing to be looking at, and if
> >> so, how to use it?
> >>
> >> --
> >>
> >> JAKE GOULDING
> >> Software Engineer
> >> goulding@vivisimo.com
> >>
> >> Vivísimo [Search Done Right™]
> >> 1710 Murray Avenue
> >> Pittsburgh, PA 15217 USA
> >> tel: +1.412.422.2499 x105
> >> fax: +1.412.422.2495
> >> vivisimo.com clusty.com
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
>
> --
>
> JAKE GOULDING
> Software Engineer
> goulding@vivisimo.com
>
> Vivísimo [Search Done Right]
> 1710 Murray Avenue
> Pittsburgh, PA 15217 USA
> tel: +1.412.422.2499 x105
> fax: +1.412.422.2495
> vivisimo.com clusty.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
Re: [axis2] how to get raw XML of result
Posted by Jake Goulding <go...@vivisimo.com>.
Well, I don't control the WSDL (Microsoft Sharepoint). I could modify
the WSDL by hand, and make it different from the actual WSDL, but that
seems kind of nasty, but I can do it if need be. Any other options?
Thanks!
Davanum Srinivas wrote:
> Typically, we ask you to specify that as xsd:any and the codegen
> creates an OMElement as the method param or java bean param which you
> can then use to get your data.
>
> Is it possible for you to do this?
>
> -- dims
>
> On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
>> I'd like to get the raw XML node representing a part of my returned
>> message. It looks like getOMElement() should be the right thing to call,
>> but I'm not sure what to pass it.
>>
>> Can anyone tell me if this is the right thing to be looking at, and if
>> so, how to use it?
>>
>> --
>>
>> JAKE GOULDING
>> Software Engineer
>> goulding@vivisimo.com
>>
>> Vivísimo [Search Done Right™]
>> 1710 Murray Avenue
>> Pittsburgh, PA 15217 USA
>> tel: +1.412.422.2499 x105
>> fax: +1.412.422.2495
>> vivisimo.com clusty.com
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
--
JAKE GOULDING
Software Engineer
goulding@vivisimo.com
Vivísimo [Search Done Right]
1710 Murray Avenue
Pittsburgh, PA 15217 USA
tel: +1.412.422.2499 x105
fax: +1.412.422.2495
vivisimo.com clusty.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] how to get raw XML of result
Posted by Davanum Srinivas <da...@gmail.com>.
Typically, we ask you to specify that as xsd:any and the codegen
creates an OMElement as the method param or java bean param which you
can then use to get your data.
Is it possible for you to do this?
-- dims
On 10/9/06, Jake Goulding <go...@vivisimo.com> wrote:
> I'd like to get the raw XML node representing a part of my returned
> message. It looks like getOMElement() should be the right thing to call,
> but I'm not sure what to pass it.
>
> Can anyone tell me if this is the right thing to be looking at, and if
> so, how to use it?
>
> --
>
> JAKE GOULDING
> Software Engineer
> goulding@vivisimo.com
>
> Vivísimo [Search Done Right]
> 1710 Murray Avenue
> Pittsburgh, PA 15217 USA
> tel: +1.412.422.2499 x105
> fax: +1.412.422.2495
> vivisimo.com clusty.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org