axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Parimi Srinivas <psrin...@brocade.com>
Subject RE: real AXIS beta 1 problem (samples/message)
Date Wed, 20 Mar 2002 01:30:52 GMT
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:skjordan@worldnet.att.net]
Sent: Tuesday, March 19, 2002 3:43 PM
To: axis-user@xml.apache.org
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"






Mime
View raw message