I think the best way to handle things is with a class that represents the full data in a message (so corresponds to a top-level element in the XML, using doc/lit). You can define a binding for that class, which has an Integer component. On the client side, a stub method can populate an instance of that class with the data being passed as parameters, then hand it off to JibxSoap for marshalling. On the server side, JibxSoap would need to unwrap the object to an array of object references for the parameters, then pass those using reflection.
We might be able to handle this best with a special extensions to the code generation process for Xsd2Jibx, where in the class generated to represent a wrapped method call for SOAP there's a special interface implemented that supplies the contained values as an Object[] for passing via reflection. The other part, on the client side, can probably be handled best with a separate code generation step (that generates the stub method call, which populates the wrapper object and passes it off for marshalling).
I'm working with Cameron on some related changes to JibxSoap and Xsd2Jibx now, though it'll probably still be a while before this whole technique is in place. Feel free to ask more questions if my answer above doesn't make sense. ;-)
- Dennis
Tim Sawyer wrote:
Hi,
I'm looking at jibx-soap to try and get it to handle non-static methods with multiple parameters, and I also need to be able to use standard java types (String, Integer etc) for parameters.
I've written a sample web service that takes an object and returns an object, and that works ok. What I'm trying to do now is write another service that takes an Integer and returns an Integer, but I'm running into problems because I haven't compiled the binding for the Integer type.
I'm not sure where to go from here to get this to work, can someone point me in the right direction?
Cheers,
Tim.
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ jibx-devs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-devs
