Re: Architecture of cxf

2007-09-20 Thread Mansour Raad
Cool - can you give me an insight of what OSGi implementation are you  
using ?   Tried felix and it worked pretty well - through you are  
right - had to stand on my head when it came down to dependencies.
Tried following what Spring-OSGi is doing; by creating dependency jar  
bundles that needed to be loaded first.  A clean api/impl would be  
very welcome :-)


On Sep 20, 2007, at 7:33 AM, Tully, Gary wrote:


Hi Dan,
When looking at CXF from an OSGi bundle perspective the duplication of
packages between api and implementation limits the modularity. Both
interface and implementation are available to dependants by default.

Would we consider adding an .impl to the implementation package  
names in

CXF.

org.apache.cxf.interceptor.Inerceptor
org.apache.cxf.interceptor.impl.BareInInterceptor

This would help Message.properties also.

Best Regards,
Gary.


-Original Message-
From: Daniel Kulp [mailto:[EMAIL PROTECTED]
Sent: 20 September 2007 01:48
To: cxf-user@incubator.apache.org
Cc: Christian Schneider
Subject: Re: Architecture of cxf


We have a few places where package names exist in both the API jar as
well as in the rt-* jars.   This may be causing some issues with the
analysis.  They CERTAINLY have caused issues with the i18n
stuff as grabbing the Message.properties seems to grab
whichever is in the
classpath first.   Definitely something I'd like to see cleaned up.

Dan


On Wednesday 19 September 2007, Christian Schneider wrote:

I have done a second try at displaying the architecture.

This time I

only included the cxf-rt* jars in the model.
This looks much better already ;-) Any idea why inlcuding the other
jars especially the api jar gave me so many cycles?

This architecture view below shows only some cycles.

Best regards

Christian Schneider




--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog




IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4,  
Ireland




Mansour
:-)





Re: Rest GET params coming in null...

2007-08-01 Thread Mansour Raad
Check out http://cwiki.apache.org/CXF20DOC/http-binding.html and the  
bottom it explains the difference.

Sure why "technically" it makes a difference.

Mansour
:-)

On Aug 1, 2007, at 2:26 PM, Brad Harper wrote:

That worked actually.  Unfortunately, I don't understand  
technically why


-bh

On 8/1/07, Mansour Raad <[EMAIL PROTECTED]> wrote:


BTW.there might be an issue with itI did try it using the
restful_http_binding sample and no go.  Raised a JIRA

On Aug 1, 2007, at 2:01 PM, Brad Harper wrote:


Is that done with an annotation?

On 8/1/07, Mansour Raad <[EMAIL PROTECTED]> wrote:


Just a shot in the dark herecould setting wrapped to false  
help ?

Mansour
:-)

On Aug 1, 2007, at 11:49 AM, Brad Harper wrote:


I've debugged this down far enough to see that the GetModel object
is being
interpreted correctly, but the id param is never bound to this
object.  Any
thoughts?

On 7/31/07, Brad Harper <[EMAIL PROTECTED]> wrote:


My get (all) requests (/services/rest/productTypes) are working.
They
return xml like this...



 Paper
 10


 Canvas
 11



My get individual requests (/services/rest/productTypes/1) are
failing
because the id property of the GetModel object is null.

Any ideas?   Code/config below

config:






http://apache.org/cxf/binding/http";>


  




Service:

@WebService(
targetNamespace = " http://
restService.service.gdservices.com/"
)
public interface RestService {

@Get
@HttpResource(location="/productTypes")
@WebResult(name = "ProductTypes")
public List getProductTypes() throws
ServiceException;

@Get
@HttpResource(location="/productTypes/{id}")
public TpMetaData getProductType(@WebParam(name = "GetModel")
GetModel
getModel) throws ServiceException ;
}


Param Object:
@XmlRootElement(name = "GetModel")
public class GetModel {
private long id;


public long getId() {
return id;
}

public void setId(long id) {
this.id = id;
}
}



Mansour
:-)






Mansour
:-)






Mansour
:-)





Re: Rest GET params coming in null...

2007-08-01 Thread Mansour Raad
BTW.there might be an issue with itI did try it using the  
restful_http_binding sample and no go.  Raised a JIRA


On Aug 1, 2007, at 2:01 PM, Brad Harper wrote:


Is that done with an annotation?

On 8/1/07, Mansour Raad <[EMAIL PROTECTED]> wrote:


Just a shot in the dark herecould setting wrapped to false help ?
Mansour
:-)

On Aug 1, 2007, at 11:49 AM, Brad Harper wrote:


I've debugged this down far enough to see that the GetModel object
is being
interpreted correctly, but the id param is never bound to this
object.  Any
thoughts?

On 7/31/07, Brad Harper <[EMAIL PROTECTED]> wrote:


My get (all) requests (/services/rest/productTypes) are working.
They
return xml like this...



 Paper
 10


 Canvas
 11



My get individual requests (/services/rest/productTypes/1) are
failing
because the id property of the GetModel object is null.

Any ideas?   Code/config below

config:






http://apache.org/cxf/binding/http";>


  




Service:

@WebService(
targetNamespace = " http://
restService.service.gdservices.com/"
)
public interface RestService {

@Get
@HttpResource(location="/productTypes")
@WebResult(name = "ProductTypes")
public List getProductTypes() throws
ServiceException;

@Get
@HttpResource(location="/productTypes/{id}")
public TpMetaData getProductType(@WebParam(name = "GetModel")
GetModel
getModel) throws ServiceException ;
}


Param Object:
@XmlRootElement(name = "GetModel")
public class GetModel {
private long id;


public long getId() {
return id;
}

public void setId(long id) {
this.id = id;
}
}



Mansour
:-)






Mansour
:-)





Re: Rest GET params coming in null...

2007-08-01 Thread Mansour Raad









On Aug 1, 2007, at 2:01 PM, Brad Harper wrote:


Is that done with an annotation?

On 8/1/07, Mansour Raad <[EMAIL PROTECTED]> wrote:


Just a shot in the dark herecould setting wrapped to false help ?
Mansour
:-)

On Aug 1, 2007, at 11:49 AM, Brad Harper wrote:


I've debugged this down far enough to see that the GetModel object
is being
interpreted correctly, but the id param is never bound to this
object.  Any
thoughts?

On 7/31/07, Brad Harper <[EMAIL PROTECTED]> wrote:


My get (all) requests (/services/rest/productTypes) are working.
They
return xml like this...



 Paper
 10


 Canvas
 11



My get individual requests (/services/rest/productTypes/1) are
failing
because the id property of the GetModel object is null.

Any ideas?   Code/config below

config:






http://apache.org/cxf/binding/http";>


  




Service:

@WebService(
targetNamespace = " http://
restService.service.gdservices.com/"
)
public interface RestService {

@Get
@HttpResource(location="/productTypes")
@WebResult(name = "ProductTypes")
public List getProductTypes() throws
ServiceException;

@Get
@HttpResource(location="/productTypes/{id}")
public TpMetaData getProductType(@WebParam(name = "GetModel")
GetModel
getModel) throws ServiceException ;
}


Param Object:
@XmlRootElement(name = "GetModel")
public class GetModel {
private long id;


public long getId() {
return id;
}

public void setId(long id) {
this.id = id;
}
}



Mansour
:-)






Mansour
:-)





REST not directed to correct path

2007-08-01 Thread Mansour Raad
Updated the restful_http_binding sample with println statement to  
print the method name that is being invoked.

and on both:

http://localhost:8080/xml/customers

and

http://localhost:8080/xml/customers/123

the getCustomers (note the plural !) is being called.   Looks like  
the full path info is not evaluated.


Mansour
:-)





Re: Rest GET params coming in null...

2007-08-01 Thread Mansour Raad

Just a shot in the dark herecould setting wrapped to false help ?
Mansour
:-)

On Aug 1, 2007, at 11:49 AM, Brad Harper wrote:

I've debugged this down far enough to see that the GetModel object  
is being
interpreted correctly, but the id param is never bound to this  
object.  Any

thoughts?

On 7/31/07, Brad Harper <[EMAIL PROTECTED]> wrote:


My get (all) requests (/services/rest/productTypes) are working.   
They

return xml like this...



 Paper
 10


 Canvas
 11



My get individual requests (/services/rest/productTypes/1) are  
failing

because the id property of the GetModel object is null.

Any ideas?   Code/config below

config:






http://apache.org/cxf/binding/http";>


  




Service:

@WebService(
targetNamespace = " http:// 
restService.service.gdservices.com/"

)
public interface RestService {

@Get
@HttpResource(location="/productTypes")
@WebResult(name = "ProductTypes")
public List getProductTypes() throws  
ServiceException;


@Get
@HttpResource(location="/productTypes/{id}")
public TpMetaData getProductType(@WebParam(name = "GetModel") 
GetModel

getModel) throws ServiceException ;
}


Param Object:
@XmlRootElement(name = "GetModel")
public class GetModel {
private long id;


public long getId() {
return id;
}

public void setId(long id) {
this.id = id;
}
}



Mansour
:-)





restful parameters setting

2007-07-31 Thread Mansour Raad

given the following annotated method in an interface

@Get
@HttpResource(location = "/{first},{last}")
@WebResult(name = "nameInfo")
NameInfo getName(
@WebParam(name = "nameOptions")
NameOptions nameOptions
);

the nameOptions.first and nameOptions.last are populated properly  
when delimited by a comma, however using:


@HttpResource(location = "/{first}/{last}")

note here it is delimited by a slash (/), then only the last property  
is set.


Any hints are very much appreciated.

Mansour
:-)




Re: http rest sample does not compile

2007-07-30 Thread Mansour Raad
Yeap...that did itthankshave to remember to clean before  
install.


On Jul 30, 2007, at 9:39 PM, Willem Jiang wrote:


Hi Mansour ,

I just built a kit with latest trunk code on windows box. I can't  
reproduce your error.

If you build the kit from the trunk, please do the fellow things:
1. cd ${CXF}/trunk
2. svn up
3. mvn clean install
4. cd distribution
5. mvn clean install

Cheers,
Willem.

Mansour Raad wrote:

OK,  now it compiles,   but now I get the following warning:

server:
 [java] Jul 30, 2007 9:32:53 AM  
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver 
 initHandlerMappings
 [java] WARNING: Ignoring namespace handler  
[org.apache.cxf.transport.http_jetty.spring.NamespaceHandler]:  
problem with handler class file or dependent class
 [java] java.lang.NoClassDefFoundError: org/apache/cxf/ 
transport/http_jetty/spring/JettyHTTPServerEngineBeanDefinitionParser
 [java] at  
org.apache.cxf.transport.http_jetty.spring.NamespaceHandler.init 
(NamespaceHandler.java:27)
 [java] at  
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver 
.initHandlerMappings(DefaultNamespaceHandlerResolver.java:123)
 [java] at  
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver 
.(DefaultNamespaceHandlerResolver.java:96)
 [java] at  
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver 
.(DefaultNamespaceHandlerResolver.java:70)
 [java] at  
org.apache.cxf.bus.spring.BusApplicationContext.initBeanDefinitionRea 
der(BusApplicationContext.java:166)
 [java] at  
org.springframework.context.support.AbstractXmlApplicationContext.loa 
dBeanDefinitions(AbstractXmlApplicationContext.java:78)
 [java] at  
org.springframework.context.support.AbstractRefreshableApplicationCon 
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java: 
100)
 [java] at  
org.springframework.context.support.AbstractApplicationContext.refres 
h(AbstractApplicationContext.java:313)
 [java] at  
org.apache.cxf.bus.spring.BusApplicationContext. 
(BusApplicationContext.java:71)
 [java] at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus 
(SpringBusFactory.java:79)
 [java] at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus 
(SpringBusFactory.java:64)
 [java] at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus 
(SpringBusFactory.java:51)
 [java] at org.apache.cxf.BusFactory.getDefaultBus 
(BusFactory.java:68)
 [java] at org.apache.cxf.BusFactory.getDefaultBus 
(BusFactory.java:57)
 [java] at org.apache.cxf.BusFactory.getThreadDefaultBus 
(BusFactory.java:97)
 [java] at  
org.apache.cxf.frontend.AbstractEndpointFactory.getBus 
(AbstractEndpointFactory.java:274)
 [java] at  
org.apache.cxf.frontend.AbstractEndpointFactory.initializeServiceFact 
ory(AbstractEndpointFactory.java:150)
 [java] at  
org.apache.cxf.frontend.ServerFactoryBean.initializeServiceFactory 
(ServerFactoryBean.java:144)
 [java] at  
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint 
(AbstractEndpointFactory.java:80)
 [java] at org.apache.cxf.frontend.ServerFactoryBean.create 
(ServerFactoryBean.java:108)
 [java] at  
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create 
(JaxWsServerFactoryBean.java:129)
 [java] at com.acme.customer.Main.createSoapService 
(Main.java:132)

 [java] at com.acme.customer.Main.main(Main.java:53)
 [java] Started CustomerService!
 [java] Server ready...

Am I missing something ?

On Jul 30, 2007, at 8:16 AM, Liu, Jervis wrote:


Thanks for the report. Fixed.

Cheers,
Jervis

-Original Message-
From: Mansour Raad [mailto:[EMAIL PROTECTED]
Sent: 2007?7?30? 18:24
To: cxf-user@incubator.apache.org
Subject: http rest sample does not compile


svn up the latest.
cd [install]/samples/restful_http_binding
ant server
I get the following:

Buildfile: build.xml

maybe.generate.code:

compile:
 [mkdir] Created dir: /Users/mansour/apache-cxf-2.1-incubator-
SNAPSHOT/samples/restful_http_binding/build/classes
 [mkdir] Created dir: /Users/mansour/apache-cxf-2.1-incubator-
SNAPSHOT/samples/restful_http_binding/build/src
 [javac] Compiling 11 source files to /Users/mansour/apache-
cxf-2.1-incubator-SNAPSHOT/samples/restful_http_binding/build/ 
classes
 [javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/ 
samples/

restful_http_binding/src/com/acme/customer/Main.java:44: package
org.codehaus.jettison.mapped does not exist
 [javac] import  
org.codehaus.jettison.mapped.MappedXMLInputFactory;

 [javac] ^
 [javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/ 
samples/

restful_http_binding/src/com/acme/customer/Main.java:45: package
org.codehaus.jettison.mapped does not exist
 [javac] import  
org.codehaus.jettison.mapped.MappedXMLOutputFactory;

 [

Re: http rest sample does not compile

2007-07-30 Thread Mansour Raad

OK,  now it compiles,   but now I get the following warning:

server:
 [java] Jul 30, 2007 9:32:53 AM  
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver  
initHandlerMappings
 [java] WARNING: Ignoring namespace handler  
[org.apache.cxf.transport.http_jetty.spring.NamespaceHandler]:  
problem with handler class file or dependent class
 [java] java.lang.NoClassDefFoundError: org/apache/cxf/transport/ 
http_jetty/spring/JettyHTTPServerEngineBeanDefinitionParser
 [java] at  
org.apache.cxf.transport.http_jetty.spring.NamespaceHandler.init 
(NamespaceHandler.java:27)
 [java] at  
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.in 
itHandlerMappings(DefaultNamespaceHandlerResolver.java:123)
 [java] at  
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.nit>(DefaultNamespaceHandlerResolver.java:96)
 [java] at  
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.nit>(DefaultNamespaceHandlerResolver.java:70)
 [java] at  
org.apache.cxf.bus.spring.BusApplicationContext.initBeanDefinitionReader 
(BusApplicationContext.java:166)
 [java] at  
org.springframework.context.support.AbstractXmlApplicationContext.loadBe 
anDefinitions(AbstractXmlApplicationContext.java:78)
 [java] at  
org.springframework.context.support.AbstractRefreshableApplicationContex 
t.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100)
 [java] at  
org.springframework.context.support.AbstractApplicationContext.refresh 
(AbstractApplicationContext.java:313)
 [java] at  
org.apache.cxf.bus.spring.BusApplicationContext. 
(BusApplicationContext.java:71)
 [java] at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus 
(SpringBusFactory.java:79)
 [java] at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus 
(SpringBusFactory.java:64)
 [java] at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus 
(SpringBusFactory.java:51)
 [java] at org.apache.cxf.BusFactory.getDefaultBus 
(BusFactory.java:68)
 [java] at org.apache.cxf.BusFactory.getDefaultBus 
(BusFactory.java:57)
 [java] at org.apache.cxf.BusFactory.getThreadDefaultBus 
(BusFactory.java:97)
 [java] at  
org.apache.cxf.frontend.AbstractEndpointFactory.getBus 
(AbstractEndpointFactory.java:274)
 [java] at  
org.apache.cxf.frontend.AbstractEndpointFactory.initializeServiceFactory 
(AbstractEndpointFactory.java:150)
 [java] at  
org.apache.cxf.frontend.ServerFactoryBean.initializeServiceFactory 
(ServerFactoryBean.java:144)
 [java] at  
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint 
(AbstractEndpointFactory.java:80)
 [java] at org.apache.cxf.frontend.ServerFactoryBean.create 
(ServerFactoryBean.java:108)
 [java] at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create 
(JaxWsServerFactoryBean.java:129)
 [java] at com.acme.customer.Main.createSoapService 
(Main.java:132)

 [java] at com.acme.customer.Main.main(Main.java:53)
 [java] Started CustomerService!
 [java] Server ready...

Am I missing something ?

On Jul 30, 2007, at 8:16 AM, Liu, Jervis wrote:


Thanks for the report. Fixed.

Cheers,
Jervis

-Original Message-
From: Mansour Raad [mailto:[EMAIL PROTECTED]
Sent: 2007?7?30? 18:24
To: cxf-user@incubator.apache.org
Subject: http rest sample does not compile


svn up the latest.
cd [install]/samples/restful_http_binding
ant server
I get the following:

Buildfile: build.xml

maybe.generate.code:

compile:
 [mkdir] Created dir: /Users/mansour/apache-cxf-2.1-incubator-
SNAPSHOT/samples/restful_http_binding/build/classes
 [mkdir] Created dir: /Users/mansour/apache-cxf-2.1-incubator-
SNAPSHOT/samples/restful_http_binding/build/src
 [javac] Compiling 11 source files to /Users/mansour/apache-
cxf-2.1-incubator-SNAPSHOT/samples/restful_http_binding/build/classes
 [javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/samples/
restful_http_binding/src/com/acme/customer/Main.java:44: package
org.codehaus.jettison.mapped does not exist
 [javac] import  
org.codehaus.jettison.mapped.MappedXMLInputFactory;

 [javac] ^
 [javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/samples/
restful_http_binding/src/com/acme/customer/Main.java:45: package
org.codehaus.jettison.mapped does not exist
 [javac] import  
org.codehaus.jettison.mapped.MappedXMLOutputFactory;

 [javac] ^
 [javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/samples/
restful_http_binding/src/com/acme/customer/Main.java:114: cannot find
symbol
 [javac] symbol  : class MappedXMLInputFactory
 [javac] location: class com.acme.customer.Main
 [javac] MappedXMLInputFactory xif = new
MappedXMLInputFactory(nstojns);
 [javac] ^
 [javac] /Users/mansour/apache-cxf-2.1-inc

http rest sample does not compile

2007-07-30 Thread Mansour Raad

svn up the latest.
cd [install]/samples/restful_http_binding
ant server
I get the following:

Buildfile: build.xml

maybe.generate.code:

compile:
[mkdir] Created dir: /Users/mansour/apache-cxf-2.1-incubator- 
SNAPSHOT/samples/restful_http_binding/build/classes
[mkdir] Created dir: /Users/mansour/apache-cxf-2.1-incubator- 
SNAPSHOT/samples/restful_http_binding/build/src
[javac] Compiling 11 source files to /Users/mansour/apache- 
cxf-2.1-incubator-SNAPSHOT/samples/restful_http_binding/build/classes
[javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/samples/ 
restful_http_binding/src/com/acme/customer/Main.java:44: package  
org.codehaus.jettison.mapped does not exist

[javac] import org.codehaus.jettison.mapped.MappedXMLInputFactory;
[javac] ^
[javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/samples/ 
restful_http_binding/src/com/acme/customer/Main.java:45: package  
org.codehaus.jettison.mapped does not exist

[javac] import org.codehaus.jettison.mapped.MappedXMLOutputFactory;
[javac] ^
[javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/samples/ 
restful_http_binding/src/com/acme/customer/Main.java:114: cannot find  
symbol

[javac] symbol  : class MappedXMLInputFactory
[javac] location: class com.acme.customer.Main
[javac] MappedXMLInputFactory xif = new  
MappedXMLInputFactory(nstojns);

[javac] ^
[javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/samples/ 
restful_http_binding/src/com/acme/customer/Main.java:114: cannot find  
symbol

[javac] symbol  : class MappedXMLInputFactory
[javac] location: class com.acme.customer.Main
[javac] MappedXMLInputFactory xif = new  
MappedXMLInputFactory(nstojns);

[javac] ^
[javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/samples/ 
restful_http_binding/src/com/acme/customer/Main.java:117: cannot find  
symbol

[javac] symbol  : class MappedXMLOutputFactory
[javac] location: class com.acme.customer.Main
[javac] MappedXMLOutputFactory xof = new  
MappedXMLOutputFactory(nstojns);

[javac] ^
[javac] /Users/mansour/apache-cxf-2.1-incubator-SNAPSHOT/samples/ 
restful_http_binding/src/com/acme/customer/Main.java:117: cannot find  
symbol

[javac] symbol  : class MappedXMLOutputFactory
[javac] location: class com.acme.customer.Main
[javac] MappedXMLOutputFactory xof = new  
MappedXMLOutputFactory(nstojns);

[javac]  ^
[javac] 6 errors

Any clues ?

Mansour
:-)





building cxf

2007-07-27 Thread Mansour Raad
svn up the latest and building using mvn -Dmaven.test.skip=true  
install -Peverything to build it.

I'm getting the following (this just started with today's update )
Any clues what to do ?

[INFO] [dependency:unpack-dependencies {execution: unpack-sources}]
[INFO]  


[ERROR] BUILD ERROR
[INFO]  


[INFO] Failed to resolve artifact.

GroupId: org.apache.cxf
ArtifactId: cxf-api
Version: 2.1-incubator-SNAPSHOT

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.cxf - 
DartifactId=cxf-api \
-Dversion=2.1-incubator-SNAPSHOT -Dpackaging=java-source - 
Dfile=/path/to/file



  org.apache.cxf:cxf-api:java-source:2.1-incubator-SNAPSHOT

Mansour
:-)





Re: Dependency Injection in JAXWS endpoint

2007-07-26 Thread Mansour Raad

Sorryreplace the implementor, not the id.

Mansour
:-)

On Jul 26, 2007, at 6:49 PM, Mansour Raad wrote:


Create a bean as follows:

class="com.visualio.reportserver.webservices.ReportingServiceImpl">

  


Replace the jaxws:endpoint id with

id="#reportingServiceImpl"

Mansour
:-)

On Jul 26, 2007, at 6:44 PM, Jeremy Isikoff wrote:

I have an endpoint declaration like this in my beans.xml file, the  
trouble is the
implementing class needs to get hold of some other spring beans  
(mainly DAOs) so it can do its work.  How can I inject these in or  
get the application context from within this implementation  
class?  If this was a normal bean declaration id just inject the  
DAOs but I dont know what to do with a Jaxws:endpoint bean?  Any  
clues?


implementor="com.visualio.reportserver.webservices.ReportingServiceIm 
pl"

address="/ReportingService"
/>

Jeremy M. Isikoff



_ 
___
Be a better Heartthrob. Get better relationship answers from  
someone who knows. Yahoo! Answers - Check it out.

http://answers.yahoo.com/dir/?link=list&sid=396545433



Mansour
:-)





Mansour
:-)





Re: Dependency Injection in JAXWS endpoint

2007-07-26 Thread Mansour Raad

Create a bean as follows:

class="com.visualio.reportserver.webservices.ReportingServiceImpl">

  


Replace the jaxws:endpoint id with

id="#reportingServiceImpl"

Mansour
:-)

On Jul 26, 2007, at 6:44 PM, Jeremy Isikoff wrote:

I have an endpoint declaration like this in my beans.xml file, the  
trouble is the
implementing class needs to get hold of some other spring beans  
(mainly DAOs) so it can do its work.  How can I inject these in or  
get the application context from within this implementation class?   
If this was a normal bean declaration id just inject the DAOs but I  
dont know what to do with a Jaxws:endpoint bean?  Any clues?


implementor="com.visualio.reportserver.webservices.ReportingServiceImp 
l"

address="/ReportingService"
/>

Jeremy M. Isikoff



__ 
__
Be a better Heartthrob. Get better relationship answers from  
someone who knows. Yahoo! Answers - Check it out.

http://answers.yahoo.com/dir/?link=list&sid=396545433



Mansour
:-)





Re: POSTing customer using REST

2007-07-24 Thread Mansour Raad
Good pointer...had to introduce to the classpath the compiled file  
package-info.java with the following content


@javax.xml.bind.annotation.XmlSchema(
namespace = "http://customer.acme.com";,
elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED
) package com.acme.customer;

and all is fine.  Thanks.


On Jul 24, 2007, at 2:38 AM, Liu, Jervis wrote:

Hi Mansour, do you have targetNamespace attribute defined in your  
WebService annotation, such as @WebService(targetNamespace =  
"http://book.acme.com";)? This targetNamespace is needed for marshal/ 
unmarshal between input and your Customer object. There were  
similar problem reported in the mailing list when targetNamespace  
is missing. If this does not help, you may want to post out your  
service interface/impl code.


Thanks,
Jervis

-Original Message-
From: Mansour Raad [mailto:[EMAIL PROTECTED]
Sent: 2007?7?24? 9:49
To: cxf-user@incubator.apache.org
Subject: POSTing customer using REST


Given the customer http rest sample, I defined a spring config with
the following endpoint:

http://apache.org/cxf/binding/http";>
 
 
 
 
 
 

I'm bootstrapping CXF from tomcat using the following web.xml

 
 contextConfigLocation
 classpath:applicationContext.xml
 

 
 Spring Context Loader
 org.springframework.web.context.ContextLoaderListener
 

 
 CXFServlet
 org.apache.cxf.transport.servlet.CXFServlet
 1
 

 
 CXFServlet
 /cxf/*
 

When I post a request using

wget --post-file add.xml http://localhost:8080/cxf/xml/customers

I can see the function being called, however the name is null in the
customer argument  any clues 

Thanks.
Mansour
:-)




IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4,  
Ireland




Mansour
:-)





POSTing customer using REST

2007-07-23 Thread Mansour Raad
Given the customer http rest sample, I defined a spring config with  
the following endpoint:


http://apache.org/cxf/binding/http";>

class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">






I'm bootstrapping CXF from tomcat using the following web.xml


contextConfigLocation
classpath:applicationContext.xml



Spring Context Loader
class>org.springframework.web.context.ContextLoaderListenerclass>




CXFServlet
org.apache.cxf.transport.servlet.CXFServletservlet-class>

1



CXFServlet
/cxf/*


When I post a request using

wget --post-file add.xml http://localhost:8080/cxf/xml/customers

I can see the function being called, however the name is null in the  
customer argument  any clues 


Thanks.
Mansour
:-)





REST on servlet

2007-07-19 Thread Mansour Raad
I've seen the example where a SOAP endpoint is published using a  
Servlet.
Can somebody please point me to how to create REST endpoint that  
produces JSON ?

Thanks.
Mansour
:-)