Invoking webSphere web services (WSDK) using only the Sun Java WebServices 1.2

Discussion in 'Java' started by Pritam Kamat, Jul 11, 2003.

  1. Pritam Kamat

    Pritam Kamat Guest

    Hello there
    I wonder if anyone has any problems using the jaxrpc classes in the
    jar files
    jaxrpc-api.jar and jaxrpc-impl.jar, which are delivered when you get
    the jwsdp1.2 from sun.

    What I find is that my services throw an exception. If I replace the
    two files above with:

    jaxrpc.jar
    axis.jar
    commons-discovery.jar
    wsdl4j.jar

    which are all delivered with WSDK 5.0, then my invoked service works.

    The exception thrown with the sun service is:
    java.lang.ArrayIndexOutOfBoundsException: 0
    serialization error: java.lang.ArrayIndexOutOfBoundsException: 0
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.serialize(LiteralRequestSerializer.java:166)
    at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:474)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:61)
    at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.j
    ava:64)
    at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:339)
    at com.trialius.webServices.remote.TARPCClient.doInvoke(TARPCClient.java
    :133)
    at TestRPCClient.main(TestRPCClient.java:100)

    CAUSE:
    java.lang.ArrayIndexOutOfBoundsException: 0
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.getParameterSerializer(LiteralRequestSerializer.java:311)
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.doSerializeInstance(LiteralRequestSerializer.java:224)
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.doSerialize(LiteralRequestSerializer.java:274)
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.internalSerialize(LiteralRequestSerializer.java:199)
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.serialize(LiteralRequestSerializer.java:155)
    at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:474)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:61)
    at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:64)
    at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:339)
    at com.trialius.webServices.remote.TARPCClient.doInvoke(TARPCClient.java:133)
    at TestRPCClient.main(TestRPCClient.java:100)

    CAUSE:
    java.lang.ArrayIndexOutOfBoundsException: 0
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.getParameterSerializer(LiteralRequestSerializer.java:311)
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.doSerializeInstance(LiteralRequestSerializer.java:224)
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.doSerialize(LiteralRequestSerializer.java:274)
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.internalSerialize(LiteralRequestSerializer.java:199)
    at com.sun.xml.rpc.encoding.literal.LiteralRequestSerializer.serialize(LiteralRequestSerializer.java:155)
    at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:474)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:61)
    at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:64)
    at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:339)
    at com.trialius.webServices.remote.TARPCClient.doInvoke(TARPCClient.java:133)
    at TestRPCClient.main(TestRPCClient.java:100)
     
    Pritam Kamat, Jul 11, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. akash deep batra
    Replies:
    0
    Views:
    355
    akash deep batra
    Feb 16, 2004
  2. Ulf Meinhardt
    Replies:
    0
    Views:
    417
    Ulf Meinhardt
    Nov 11, 2004
  3. Replies:
    0
    Views:
    2,885
  4. =?Utf-8?B?Um95?=

    .NET Web services in WebSphere

    =?Utf-8?B?Um95?=, Oct 15, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    295
    Mike Placentra II
    Oct 17, 2007
  5. Ulf Meinhardt
    Replies:
    6
    Views:
    2,378
    Arne Vajhøj
    Jan 26, 2008
Loading...

Share This Page