Indra,
 
What these people are saying is correct.  You have to get your beanmapping and the addparam correct.
 
Can you post your client invocation code and also the corresponding wsdd ?
 


 
On 12/8/05, Indra Syafruddin <[EMAIL PROTECTED]> wrote:
I have tried the code, it returns error, that I need to add
call.addParameter() method.

I have added call.addParameter("arg1",qn,ParameterMode.IN).

but it returns "premature end of file" error



On 12/8/05, Martin, Imme <[EMAIL PROTECTED] > wrote:
> 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
>


--
Indra Syafruddin
personal : [EMAIL PROTECTED]; [EMAIL PROTECTED]
business : [EMAIL PROTECTED]

Reply via email to