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
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
= 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
();
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
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
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)
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);
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.
;
}
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
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
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
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
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.
://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
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
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
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
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
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
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 ...
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
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
22 matches
Mail list logo