Hi Sergey,
There are some tricks in the CXF servlet transport.
Because we need to support the generate the service address dynamically
with the different request, all the magical thing happened in the
ServletController's updateDests method.
In this way, we can support http://localhost/myapp/services/GreetMe and
http://MyBox/myapp/services/GreetMe at the same time.
And jaxws:endpoint/@address just a suffix of the address.
If you specify the address with /services/GreetMe , you have to access
the endpoint with the URL like
http://localhost/myapp/services/services/GreetMe
Willem.
Sergey Beryozkin wrote:
HI
Just a follow-up question...
So is the rule of thumb is to use wildcard url patterns, like "/services/*" and
then use jaxws:endpoint/@address
values like "/GreetMe" ?
I'm wondering why specifying a pattern like "/services/GreetMe" doesn
work...Casually glancing through a servler code didn't give me an answer so I'll probably
have to look harder :-).
Cheers, Sergey
----- Original Message -----
From: "Sergey Beryozkin" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, September 12, 2007 1:22 PM
Subject: Re: cxf servlet and jaxws:endpoint questions
Hi Chris
It does work, super !
Thanks for a quick reply,
Sergey
----- Original Message -----
From: "Christopher Moesel" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, September 12, 2007 1:14 PM
Subject: RE: cxf servlet and jaxws:endpoint questions
Hi Sergey,
The following combination *should* work...
In web.xml, the url-pattern for the servlet-mapping:
/hello/*
In the jaxws:endpoint/@address:
/world
I believe that the difference between implementor and implementorClass
is this:
implementor: a reference to an *instance* of your SEI implementation (in
Spring, you use this style: #myServiceEndpointImp)
implementorClass: the fully qualified classname of your SEI
implementation, which must have a default constructor (for example,
com.mycompany.MyServiceEndpointImpl)
I hope that helps!
-Chris
-----Original Message-----
From: Sergey Beryozkin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 12, 2007 7:55 AM
To: [email protected]
Subject: cxf servlet and jaxws:endpoint questions
Hi
I have few questions with respect to deploying a cxf servlet into tomcat
:
* how to use/combine correctly a servlet's url pattern and an
jaxws:endpoint/@address values ?
For example, suppose I have a webapp "test" and I want my servlet to
recognize this pattern : /hello/world
As such, I'd like
GET http://localhost:8080/test/hello/world?wsdl
to return me a wsdl.
In web.xml I've tried
/hello/*
/hello/world
and in jaxws:endpoint/@address I tried
/hello/world
/world
with no luck, the above request returns no service is available
* what is the difference between jaxws:endpoint/@implementer and
jaxws:endpoint/@implementerClass attributes ?
Thanks, Sergey
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
Ireland
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland