axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Johnston" <>
Subject Re: Retrieving data from a SOAP packet
Date Thu, 06 Jun 2002 14:41:27 GMT
Here is the code I am using:

        Service  service = new Service();
        Call     call    = (Call) service.createCall();
        // create the endpoint URL
        String endpoint = "http://localhost:8900/Soap-Control";
        // set up the call information
        call.setTargetEndpointAddress( new URL(endpoint) );
        RPCParam a1 = new RPCParam("hostSessionID", new String("ABC12345")); 
        RPCParam a2 = new RPCParam("source", new String("/localstore/Partner.eps")); 
        RPCParam a2a = new RPCParam("platform", new String("WinNT")); 
        RPCParam a3 = new RPCParam("sessionType", new String("viewer")); 
        RPCParam a4 = new RPCParam("userID", new String("1")); 
        RPCParam a5 = new RPCParam("firstName", new String("Paul")); 
        RPCParam a6 = new RPCParam("lastName", new String("Johnston"));

        String obj = "";
        // actually do the call
        try {
            obj = (String) call.invoke("CreateSession2", new Object[] { a1, a2, a2a, a3, a4,
a5, a6 });
        } catch(AxisFault af) {
            System.err.println("FAULT:\n" + af.getFaultString());

The error occurs when we hit the try{} block. The SOAP Packet returned looks like this:

<?xml version="1.0"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV=""

And I get this error:

     [java] - Exception:
     [java]  org.xml.sax.SAXException: SimpleDeser cannot handle structured data!
    [java] FAULT:
      [java]    at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(
    [java] org.xml.sax.SAXException: SimpleDeser cannot handle structured data!
     [java]     at org.apache.axis.encoding.DeserializationContextImpl.startElement(

     [java]     at org.apache.axis.message.SAX2EventRecorder.replay(
     [java]     at org.apache.axis.message.MessageElement.publishToHandler(
     [java]     at org.apache.axis.message.RPCElement.deserialize(
     [java]     at org.apache.axis.message.RPCElement.getParams(
     [java]     at org.apache.axis.client.Call.invoke(
     [java]     at org.apache.axis.client.Call.invoke(
     [java]     at org.apache.axis.client.Call.invoke(
     [java]     at
     [java]     at

Basically, I have no idea why it isn't getting into Java.

Any more ideas?


PS Anna, I didn't really understand that code.  No comments, so I didn't see where I could
put it in.  Thanks anyway.

View raw message