[jboss-user] [JBossWS] - Basic J2EE 1.4 tutorial sample not working.

Zgluteks do-not-reply at jboss.com
Thu Nov 9 12:37:27 EST 2006

I currently trying to make webservices using the "standard" libraries. Our company make webapps, focusing on customers still using J2EE 1.4 app servers, but of course we'd like our apps to work on EE 1.5 app servers too.
Anyway, I just downloaded J2EE 1.4 and the tutorial and did everything described on this page: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXRPC3.html

It produces a .war file, that I put on JBoss AS' "deploy" directory.

Then I continued the tutorial, trying to make a simple client communicate with the service I deployed. Unfortunatelly it didn't work, with this resulting error:

  |      [java] Endpoint address = http://localhost:8080/hello-jaxrpc/hello
  |      [java] java.rmi.RemoteException: Runtime exception; nested exception is:
  |      [java]     Style de codage inattendu : attendu = http://schemas.xmlsoap.org/soap/encoding/, réel =
  |      [java]     at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:331)
  |      [java]     at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:313)
  |      [java]     at staticstub.HelloIF_Stub.sayHello(HelloIF_Stub.java:70)
  |      [java]     at staticstub.HelloClient.main(Unknown Source)
  |      [java] Caused by: Style de codage inattendu : attendu = http://schemas.xmlsoap.org/soap/encoding/, réel =
  |      [java]     at com.sun.xml.rpc.encoding.SOAPDeserializationContext.verifyEncodingStyle(SOAPDeserializationContext.java:168)
  |      [java]     at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:175)
  |      [java]     at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:155)
  |      [java]     at staticstub.HelloIF_Stub._deserialize_sayHello(HelloIF_Stub.java:118)
  |      [java]     at staticstub.HelloIF_Stub._readFirstBodyElement(HelloIF_Stub.java:105)
  |      [java]     at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
  |      [java]     ... 2 more

What could be the problem?

Thank you very much for your help.

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

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

More information about the jboss-user mailing list