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 a
> ClientProxyFactoryBean factory = new
> ClientProxyFactoryBean(new JaxWsClientFactoryBean());
>
> ...
>
>
> Willem.
>
> Daniel Lipofsky wrote:
> > Ah, I should have though of that.
> > It's very informative.
> >
> > The HTML I am
> org.apache.cxf.interceptor.LoggingInInterceptor());
>
> and see what 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
rt();
> Client client = ClientProxy.getClient(txPort);
> HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
> httpConduit.getClient().setAllowChunking(false);
> httpConduit.getClient().setAutoRedirect(true);
> ...
>
> Dan
>
>
>
>
> On Thursday 06 Marc
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();
Map context = ((BindingProvider)
txPort).getReq
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 [ma
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");
context.put(END
n;
}
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:2
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.
List hdrList = (List)ctx.get(Header.HEADER_LIST));
> > hdrList.add(hdr);
> >
> > And example of this would be our system test that test this:
> >
> http://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/
> >java/org/apache/cxf/systest/outofband/heade
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.
C
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) f
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 s
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
try that and see if it helps.
- Dan
> -Original Message-
> From: John-M Baker [mailto:[EMAIL PROTECTED]
cated 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
>
>
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 yes
OK, I solved this original problem but I have more questions:
How do you control the soap location.
Right now it is outputing
http://localhost:9090/hello"/>
which is not correct.
Also, can I override this programmatically in the client?
Thanks,
Dan
p.s. I solved it by removing package-i
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 WSDL
I have got some WebServices that basically take and return
Map and List. 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 we used WebMethods Gl
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
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]
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