Hi Tomek,
Thanks a lot for your reply. I am new to web services and just started
using xfire. Can u pls give me more info of style/use setting? What actually
is that?
Mark
Tomek Sztelak wrote:
>
> make sure you have the same style/use settings on both sides.
>
> On 5/2/07, Plant More Tree <[EMAIL PROTECTED]> wrote:
>>
>> Hi guys,
>>
>> My class is like below:
>>
>> package com.jolmat.model;
>>
>> public class UserToken {
>> String username;
>> String password;
>>
>> public UserToken() {
>> }
>> public UserToken(String username, String password) {
>> this.username = username;
>> this.password = password;
>> }
>> /**
>> * @return the password
>> */
>> public String getPassword() {
>> return password;
>> }
>> /**
>> * @param password the password to set
>> */
>> public void setPassword(String password) {
>> this.password = password;
>> }
>> /**
>> * @return the username
>> */
>> public String getUsername() {
>> return username;
>> }
>> /**
>> * @param username the username to set
>> */
>> public void setUsername(String username) {
>> this.username = username;
>> }
>> }
>>
>> so when I put UserToken as 2nd argument like below:
>>
>> public boolean updateUser(User user, UserToken userToken){
>> .....
>> }
>>
>> I got error message like:
>>
>> org.codehaus.xfire.fault.XFireFault: Index: 1, Size: 1
>> at
>> org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
>> at
>> org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
>> at
>> org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
>> at
>> org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke
>> (ReadHeadersHandler.java:67)
>> at
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>> at org.codehaus.xfire.client.Client.onReceive(Client.java:382)
>> at
>> org.codehaus.xfire.transport.http.HttpChannel.sendViaClient
>> (HttpChannel.java:139)
>> at
>> org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
>> at
>> org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
>> at
>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>> at
>> org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
>> at org.codehaus.xfire.client.Client.invoke(Client.java:335)
>> at
>> org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
>> at
>> org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
>> at $Proxy0.containerTest(Unknown Source)
>> at Test.main(Test.java:29)
>>
>> and after taking out the UserToken as 2nd argument, no prob !
>>
>> Please help !
>>
>> Thanks & regards,
>> Mark
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/org.codehaus.xfire.fault.XFireFault%3A-Index%3A-1%2C-Size%3A-1-tf3678427.html#a10279303
>> Sent from the XFire - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>
>
>
> --
> -----
> When one of our products stops working, we'll blame another vendor
> within 24 hours.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
View this message in context:
http://www.nabble.com/org.codehaus.xfire.fault.XFireFault%3A-Index%3A-1%2C-Size%3A-1-tf3678427.html#a10282392
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email