I'm having trouble getting JBossWS/JBossAS working in JDK 1.6. I'm aware of the existing bug report....
https://jira.jboss.org/jira/browse/JBWS-1439
I ran the JBossWS ant script using JDK 1.6 and verified that the following JARs were copied into $JBOSS_HOME/lib/endorsed....
jaxb-api.jar
jboss-jaxrpc.jar
jboss-jaxws.jar
jboss-saaj.jar
However, I still get exceptions of this sort....
javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:317)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:255)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
Configuration:
JDK 1.6.0_10
JBoss AS 4.2.0.GA
JBossWS 2.0.0
Ubuntu 8.10
Unfortunately, upgrading to later versions isn't an option.
Larry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187795#4187795
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187795
"pxstein" wrote : Nearly all of the web service examples show on how to pass single input parameters as "string" or "int" to a web service.
|
| But what if I want to pass a whole Java class ValueObject like e.g.
|
| public class MyValueObj {
| public String name;
| public int value;
| protected boolean result; }
|
| Is there somewhere an example (client and webservice implementation)
| of passing such more complex ValueObjects to a web service?
|
| Peter
Take a look at the jbossws testsuite, package org.jboss.test.ws.jaxws.samples.advanced.retail for instance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187717#4187717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187717
I'm using jboss 4.2.3 + jbossws native 3.0.4 ga.
My application in a client to a web service.
Everything worked fine with jboss 4.2.2 and jbossws 2.0.3
After jbossws went to 2.0.4 nothing worked anymore.
The remote server always responds with a java.io.exception:
It seems something is wrong with how jboss connects to the remote service. Notice that the soap message produced by jbossws works fine if run through soapui.
Thanks.
Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Invalid HTTP server response [400] - POST/PUT Must Be Explicitly Terminated. Response: POST/PUT Must Be Explicitly Terminated/400.
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:348)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:242)
... 131 more
Caused by: org.jboss.ws.WSException: Invalid HTTP server response [400] - POST/PUT Must Be Explicitly Terminated
at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:75)
at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:518)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:307)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187716#4187716
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187716