[jboss-user] [JBossWS] - MTOM With JBOSSWS and WSCOMPILE

greenbean do-not-reply at jboss.com
Fri Oct 27 13:49:09 EDT 2006


I am attempting to use MTOM with JBossWS.  We currently use WSCompile to generate the java objects from the wsdl/xsd.  It generates a Base64Binary object to hold the binary attachment data.  However, when I run a JBossWS client, I get the following exception.  How do I fix this?

java.rmi.RemoteException: Call invocation failed: Could not transmit message; nested exception is: 
	javax.xml.soap.SOAPException: Could not transmit message
	at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
	at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
	at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
	at $Proxy2.search(Unknown Source)
	at com.ngc.ident1.client.Client.main(Client.java:144)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.ve.internal.java.vce.launcher.remotevm.JavaBeansLauncher.main(JavaBeansLauncher.java:79)
Caused by: javax.xml.soap.SOAPException: Could not transmit message
	at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204)
	at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
	... 9 more
Caused by: javax.xml.rpc.JAXRPCException: java.lang.ClassCastException: com.test.Base64Binary
	at org.jboss.ws.soap.SOAPContentElement.write(SOAPContentElement.java:986)
	at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:171)
	at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:184)
	at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:184)
	at org.jboss.ws.soap.SAAJElementWriter.printInternal(SAAJElementWriter.java:163)
	at org.jboss.ws.soap.SAAJElementWriter.print(SAAJElementWriter.java:142)
	at org.jboss.ws.soap.SAAJElementWriter.printSOAPElement(SAAJElementWriter.java:91)
	at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:177)
	... 10 more


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981374#3981374

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981374



More information about the jboss-user mailing list