wsdl location change from 2.0.4 to 2.0.5

2008-03-13 Thread Daniel Lipofsky
I tried switching from 2.0.4 to 2.0.5-20080311.140539-8, but I have a problem with WSDLToJava. In 2.0.4 it generated *Service.java class with a relative path like wsdl/Tx.wsdl but in 2.0.5 it generates it with an absolute path like file:/C:/projects/trunk/bc/ws/template/wsdl/Tx.wsdl I tried

RE: trying to use ClientProxyFactoryBean but failing

2008-03-10 Thread Daniel Lipofsky
it prints out. The HTML might give a clue. Dan On Friday 07 March 2008, Daniel Lipofsky wrote: username/password are not wrong because I used the same username/password for each method and the first one works. I tried the change you suggested and now I get a different error

RE: trying to use ClientProxyFactoryBean but failing

2008-03-10 Thread Daniel Lipofsky
= new ClientProxyFactoryBean(new JaxWsClientFactoryBean()); ... Willem. Daniel Lipofsky wrote: Ah, I should have though of that. It's very informative. The HTML I am getting back basically says it is a 401 error with the message This request requires HTTP authentication

RE: trying to use ClientProxyFactoryBean but failing

2008-03-07 Thread Daniel Lipofsky
(); httpConduit.getClient().setAllowChunking(false); httpConduit.getClient().setAutoRedirect(true); ... Dan On Thursday 06 March 2008, Daniel Lipofsky wrote: Can anyone tell me why the first form works but the second doesn't? I am trying to start using the factory stuff

RE: WSDL2Java does not generate the setter method of a List of objects

2008-03-06 Thread Daniel Lipofsky
Same for me. There is also a comment in the generated file that makes it clear this is deliberate, although I don't know why this decisison was made. You can always do foo.getAddresses().clear() foo.getAddresses().addAll(someOtherList); - Dan -Original Message- From: Landslide

trying to use ClientProxyFactoryBean but failing

2008-03-06 Thread Daniel Lipofsky
Can anyone tell me why the first form works but the second doesn't? I am trying to start using the factory stuff but it is failing. What am I doing wrong? Works: TxService txService = new TxService(); TxPortType txPort = txService.getTxPort(); MapString, Object context = ((BindingProvider)

RE: Accessing WebService that requires username/password

2008-03-05 Thread Daniel Lipofsky
I am using something like this: FoobarService foobarService = new FoobarService(); FoobarPortType foobarPort = foobarService.getFoobarPort(); context = ((BindingProvider) foobarPort).getRequestContext(); context.put(USERNAME, me); context.put(PASSWORD, hello);

RE: request/response wrapper with wsdl2java

2008-03-03 Thread Daniel Lipofsky
First try and read the section in this wiki titled How can I switch my generated web service method calls from wrapper style to non wrapper-style (or vice-versa)? http://cwiki.apache.org/confluence/display/CXF20DOC/WSDL+to+Java and the related section referenced in the JAX-WS 2.1 specification.

RE: passing a flag from impl method to interceptor

2008-03-03 Thread Daniel Lipofsky
; } for (int i = 0; i headers.size(); i++) { log.info(HEADER + i + : + headers.get(i).getName()); } } } Thanks, Dan -Original Message- From: Daniel Lipofsky [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 1:23 PM To: cxf-user

RE: WSDLtoJava

2008-02-29 Thread Daniel Lipofsky
I'm not sure why it is using that package, it usually bases the package name off the namespace URL, but you can override by adding the -p parameter like this arg value=-p/ arg value=com.mycompany.foobar.ws.impl.jaxws/ try that and see if it helps. - Dan -Original

passing a flag from impl method to interceptor

2008-02-29 Thread Daniel Lipofsky
I have a csae where I want to set something in the SOAP response header based on what happened in the execution of the method implementation. I suppose I want to extend AbstractSoapInterceptor, but what I can't figure out is how to pass a flag from the method to the interceptor. I thought about

RE: WebServiceContext violates loader constraints

2008-02-29 Thread Daniel Lipofsky
On Friday February 29, 2008 Daniel Kulp wrote: On Thursday 28 February 2008, Daniel Lipofsky wrote: Well, I still can't figure out what changed. But JBoss does include that class in jboss-jaxws.jar. Removing the CXF version (jaxws-api-2.0.jar) from my install solved the problem

error trying to add logging in cxf-servlet.xml

2008-02-29 Thread Daniel Lipofsky
So I want to add some custom logging, but first I just tried the logging example in the wiki page for configuration. I get an exception on startup. What am I doing wrong? The only difference I see is between my cxf-servlet.xml and the example is that the example has no jaxws:endpoint entires.

RE: passing a flag from impl method to interceptor

2008-02-29 Thread Daniel Lipofsky
://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/ java/org/apache/cxf/systest/outofband/header/ 3 is definitely the simplest. No interceptors needed. Nothing really to configure, etc Dan On Friday 29 February 2008, Daniel Lipofsky wrote: I have a csae where I

WebServiceContext violates loader constraints

2008-02-28 Thread Daniel Lipofsky
Suddenly I am getting this error: 2008-02-28 13:47:02,631 ERROR [STDERR] - Feb 28, 2008 1:47:02 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Application has thrown exception, unwinding now: Class javax/xml/ws/WebServiceContext violates loader constraints It was working fine

RE: WebServiceContext violates loader constraints

2008-02-28 Thread Daniel Lipofsky
in JBoss. Thanks, Dan -Original Message- From: Daniel Kulp [mailto:[EMAIL PROTECTED] Sent: Thursday, February 28, 2008 2:03 PM To: cxf-user@incubator.apache.org Cc: Daniel Lipofsky Subject: Re: WebServiceContext violates loader constraints Looks like there are two different

java2wsdl yeilds WSDL file that causes NullPointerException

2008-02-26 Thread Daniel Lipofsky
I was using WSDLToJava but now I am trying to use JavaToWSDL. I have a bunch of web-services with the same signature and they all inherit from a common abstract impl class, so it seems best to generate the WSDL. I am trying to deploy on JBoss 4.2.2 / JDK 1.5.0 / CXF 2.0.4 Using the generated

RE: java2wsdl yeilds WSDL file that causes NullPointerException

2008-02-26 Thread Daniel Lipofsky
OK, I solved this original problem but I have more questions: How do you control the soap location. Right now it is outputing soap:address location=http://localhost:9090/hello/ which is not correct. Also, can I override this programmatically in the client? Thanks, Dan p.s. I solved it

best practices for Map and List in webservices

2008-02-25 Thread Daniel Lipofsky
I have got some WebServices that basically take and return MapString,String and ListString. I am wondering what is considered the best way to do this, especially for interoperability with both Java and .NET. I don't have to use the Java collections (although it sure is convenient). Previously

Loading data into pre-existing objects

2008-02-21 Thread Daniel Lipofsky
I am trying to convert our webservices from WebMethods Glue to CXF and I am looking for some advice and good examples. The main thing we do is upload and download a list of objects, persisted to the database via Hibernate or EJBs. Our SOAP XML files look something like this DataList ...

RE: client code to access java_first_jaxws on tomcat

2008-02-20 Thread Daniel Lipofsky
Thanks for the speedy replies. Willem's simple change got my client working, and Glen's well documented and more complex examples will probably save my sanity as I progress in this project. - Dan -Original Message- From: Daniel Lipofsky [mailto:[EMAIL PROTECTED] Sent: Tuesday

client code to access java_first_jaxws on tomcat

2008-02-19 Thread Daniel Lipofsky
I am trying to learn CXF, I have installed the java_first_jaxws sample on Tomcat 5.5 and can see the wsdl at http://localhost:8080/helloworld/services/hello_world?wsdl But what I don't understand is how I can run webservices against that server. Does anyone have client code that will allow me to