Re: Problems setting up wo app to consume webservices
Re: Problems setting up wo app to consume webservices
- Subject: Re: Problems setting up wo app to consume webservices
- From: Lachlan Deck <email@hidden>
- Date: Sat, 28 Apr 2007 08:41:43 +1000
Hi Jerry,
On 28/04/2007, at 2:03 AM, jerry porter wrote:
I am trying to use WO to produces and consume WebServices and I am
running into problems serializing and deserializing Complex Objects.
I have looked at the mailing list archives but did not see a solution.
I am running WO 5.22 on windows.
May as well upgrade to 5.2.4.
Then I extended the pattern to try a Complex object such as a HashMap.
private static void registerHashMapSerializers() {
registerMap(java.util.HashMap.class, new QName
("urn:HierarchyServices", "HashMap"));
}
private static void registerMap(Class bean, QName aName) {
WOWebServiceRegistrar.registerFactoriesForClassWithQName
(new BeanSerializerFactory(bean, aName), new BeanDeserializerFactory
(bean, aName), bean, aName);
}
However I get a number of errors like:
stackTrace: org.xml.sax.SAXException: Deserializing
parameter 'myHashMap
MethodReturn': could not find deserializer for type
{urn:HierarchyServices}HashMap
I've not attempted to use maps with Axis yet - but here's what I'd be
looking at to make it happen:
http://ws.apache.org/axis/java/user-guide.html#XMLJavaDataMappingInAxis
- http://ws.apache.org/axis/java/user-
guide.html#HowYourJavaTypesMapToSOAPXMLTypes
- http://ws.apache.org/axis/java/user-
guide.html#WhatAxisCanNotSendViaSOAP
- http://ws.apache.org/axis/java/user-
guide.html#EncodingYourBeansTheBeanSerializer
- http://ws.apache.org/axis/java/user-
guide.html#WhenBeansAreNotEnoughCustomSerialization
And perhaps:
- http://ws.apache.org/axis/java/user-guide.html#UsingWSDLWithAxis
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden