For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > September 2006 > Confused - Webservices and serialization









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Confused - Webservices and serialization
James 1000

2006-09-22, 6:59 pm

Hi, I have created my own simple data type called DMScript

public class DMScript implements Serializable {
private String name = "";
private String command = "";

... etc ...

I have created the getter / setter methods. Servicegen (or autogen) has created me the
"DMScriptHolder.java" and "DMScriptCodec.java" classes (and added DMScript entries into
'web-services.xml' and 'types.xml')

Surely the DMScriptCodec class should contain the methods serialize() and deserialize() (I
thought that was the whole idea of these auto generated classes)

I'm getting the following exception, and I 'assume' this is because it couldn't find a
serialization method.

----------------------------
javax.xml.rpc.JAXRPCException:
failed to invoke operation 'createCommandScriptJobForDevice' due to an error in the soap
layer (SAAJ);
nested exception is:
Message[ failed to serialize class
com.test.oma.webservices.values.CreateCommandScriptJobRequest
weblogic.xml.schema.binding.SerializationException:
mapping lookup failure.
class=class com.test.deviceManagement.values.DMScript
class
context=TypedClassContext{schemaType=['j
ava:com.test.deviceManagement.values']:DMScript}]
----------------------------

I'm using Weblogic 8.1 sp4
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com