If you have changed the style to document and encoding to literal manually
in wsdl, this example seems to work. I face the same problems which you
mentioned. 

Is the signature for document services can be any of the following:

1. Elements[] someMethod(MessageContext ctx, Elements[] elements);
2. Elements[] someMethod(MessageContext ctx, Vector elements);
3. Elements[] someMethod(MessageContext ctx, ArrayList elements);

I tested with the above signatures and service seems to work. BTW how does
Java2WSDL determine how to put style as RPC or document ?.

Thanks,
parimi

-----Original Message-----
From: Stan Jordan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 3:43 PM
To: [EMAIL PROTECTED]
Subject: real AXIS beta 1 problem (samples/message)


The sample works fine with the client provided.  But if you generate a wsdl
file with a browser, and create stubs via WSDL2Java...

1.  The wsdl file says style="rpc" (wrong)
2.  The stub says
         call.setOperationStyle("rpc");    (wrong)
3.  A client using the stub will fail (exception pasted below).

If anyone has generated a good wsdl file and stub from this example, please
let me know.
Cheers.
Stan
I used beta1 dated 3/19/02
------------------------------
java.io.IOException: No mapped schema type for
org.apache.axis.message.SOAPBodyElement
 at org.apache.axis.AxisFault.makeFault(Unknown Source)
 at org.apache.axis.SOAPPart.getAsString(Unknown Source)
 at org.apache.axis.SOAPPart.getAsBytes(Unknown Source)
 at org.apache.axis.Message.getContentLength(Unknown Source)
 at org.apache.axis.transport.http.HTTPSender.invoke(Unknown Source)
 at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
 at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
 at org.apache.axis.SimpleChain.invoke(Unknown Source)
 at org.apache.axis.client.AxisClient.invoke(Unknown Source)
 at org.apache.axis.client.Call.invoke(Unknown Source)
 at org.apache.axis.client.Call.invoke(Unknown Source)
 at org.apache.axis.client.Call.invoke(Unknown Source)
 at org.apache.axis.client.Call.invoke(Unknown Source)
 at
localhost.MessageServiceSoapBindingStub.echoElements(MessageServiceSoapBindi
ngStub.java:118)
 at Client.main(Client.java:36)
Caused by: java.io.IOException: No mapped schema type for
org.apache.axis.message.SOAPBodyElement
 at org.apache.axis.encoding.ser.ArraySerializer.serialize(Unknown Source)
 at
org.apache.axis.encoding.SerializationContextImpl.serializeActual(Unknown
Source)
 at org.apache.axis.encoding.SerializationContextImpl.serialize(Unknown
Source)
 at org.apache.axis.encoding.ser.ArraySerializer.serialize(Unknown Source)
 at
org.apache.axis.encoding.SerializationContextImpl.serializeActual(Unknown
Source)
 at org.apache.axis.encoding.SerializationContextImpl.serialize(Unknown
Source)
 at
org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(Unknown
Source)
 at org.apache.axis.message.SOAPEnvelope.outputImpl(Unknown Source)
 at org.apache.axis.message.MessageElement.output(Unknown Source)
 ... 14 more
Exception in thread "main"





Reply via email to