axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: help with sending a struct
Date Wed, 17 Sep 2003 07:21:58 GMT
Instead of using stucts you may consider us maps.  define a map in WSDL and
use AXIS to generate the required stub classes.  Using the stub classes, you
can send maps to the server.


-----Original Message-----
From: scott []
Sent: Wednesday, September 03, 2003 10:34 PM
Subject: help with sending a struct

Hey guys,

Been reading the soap spec and a struct looks like a great way to send
pairs of strings to a soap server. For example, I want to send:

"username" => "bob smith"
"hobbies" => "fishing, bike riding, skiing"

Now, how can I achieve this in axis? I have a sample .jws server set up for
client to test with, but I don't know how to actually send/receive this
data, as
most examples in the axis samples are very basic int/string parameters

The bidbuy example seems to send java objects, does that mean axis is
responsible for turning that into base SOAP data types? I see that the
client uses:

// register the PurchaseOrder class
QName poqn = new QName("", "PurchaseOrder");
Class cls = PurchaseOrder.class;
call.registerTypeMapping(cls, poqn, BeanSerializerFactory.class,
call.addParameter( "PO", poqn, ParameterMode.IN );

Will I have to do something similar? That looks a bit complex for what I
want to
do? It also only gets back a string, I want to get back key/value pairs.

Any tips/code examples welcome!


View raw message