Hallo Indra, 

I think you need to tell axis about the object you receive from the service in 
order to map it correctly. Therefore, try to do something like this: 

<code example>

qn = new QName( "<YourNamespace>", "<YourElementName>" );

// create a new serielizer and deserializer for the Java Bean into
// which you want Axis to map the received Object
BeanSerializerFactory bsf = new BeanSerializerFactory(<YourJavaBean>.class, qn);
BeanDeserializerFactory bdsf = new 
BeanDeserializerFactory(<YourJavaBean>.class, qn);

// register the serializer/deserializer with your call object
call.registerTypeMapping(BusinessPartnerElements.class, qn, bsf, bdsf);

// tell the call about the  return type thing
call.setReturnType( qn ); 

// call the service 
<YourJavaBean> yjb = (<YourJavaBean>)call.invoke(new Object[] {<params>});

</code example>


I hope this helps. Unfortunately, I don't have a book recommendation since I am 
still looking for a good reference myself :)
But what really helped me were the guides at ws.apache.org/axis but I guess you 
read those already ;)

Good luck, 
Martin


-----Ursprüngliche Nachricht-----
Von: Indra Syafruddin [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. Dezember 2005 05:43
An: [email protected]
Betreff: Newbie Question

Hello, I am new in using Axis
I have one newbie question, can Axis return Object?

I tried to make web services that returns Vector (with String value),
it runs ok.
But when I put Object in the Vector and return it, there's always error :

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXParseException: Premature end of file.
...

do anyone know how to solve the problem?

plus, do anyone know any axis book or tutorial I can download?

thanks

Reply via email to