Thanks Tomek for that.
I am new to XFire. I have a couple of doubts on how to use this.
I am planning to go ahead with the second way of getting the XML i.e. switch
to DOM mode. The article says
Service service = ... // retreive your service from the ServiceRegistry
Where should I write this? How will I get the service from ServiceRegistry?
>> public void invoke(MessageContext context) {
>> Document inputDoc =
>> context.getInMessage().getProperty(DOMInHandler.DOM_MESSAGE):
>> Document outputDoc =
>> context.getOutMessage().getProperty(DOMOutHandler.DOM_MESSAGE):
>> }
Does this code mean, 'invoke' is one of the methods in web service?
As I already mentioned, I have a WSDL and generating the server side classes
using 'org.codehaus.xfire.gen.WsGen', the methods are created by it without any
message context. Where can I get the MessageContext from?
Thanks,
Bob
----- Original Message ----
From: Tomek Sztelak <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, March 19, 2007 12:56:59 PM
Subject: Re: [xfire-user] XFire 1.2.2 : how can I access the soap message from
inside the web service
XFire is based on Stax, so there is no such thing like soap XML
representation, but you can tell XFire to create DOM representation
which you can use later . Take a look at
http://xfire.codehaus.org/MessageContext "Getting at the XML" part.
On 3/19/07, bob cruise <[EMAIL PROTECTED]> wrote:
>
> Yes. I mean the xml representation of the message.
>
>
> ----- Original Message ----
> From: Tomek Sztelak <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Monday, March 19, 2007 12:11:16 PM
> Subject: Re: [xfire-user] XFire 1.2.2 : how can I access the soap message
> from inside the web service
>
>
> What do you mean by soap message ? message xml representation or
> something else?
>
>
> On 3/19/07, bob cruise <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I am following the top-down approach for creating a web service in xfire
> > 1.2.2. i.e. I have a wsdl and generate the server side classes using
> > org.codehaus.xfire.gen.WsGen.
> >
> > I want to access the SOAP message from inside my web service method. How
> can
> > I do this?
> >
> > I have seen the MessageContext support in xfire user guide, but I feel
> this
> > may help only if I start building my web service from the java class.
> >
> > Any help in this regard is very useful.
> > Thanks in advance,
> > Bob
> > ________________________________
> > 8:00? 8:25? 8:40? Find a flick in no time
> > with theYahoo! Search movie showtime shortcut.
>
>
> --
> -----
> When one of our products stops working, we'll blame another vendor
> within 24 hours.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
> ________________________________
> Now that's room service! Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
____________________________________________________________________________________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail