Hi all,

I tried mixing the annotations. as follows:

@Path("/")
@WebService(serviceName="AccountService")
public class AccountService {
   @PUT
   @Path("/Account")
   @WebMethod
   public long insert(
           @WebParam(name="account")
           Account account
           ) {
       logger.info("insert Received: " + account);
       return 0;
   }
}

@XmlRootElement(name="Account")
@XmlType(name="Account")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class Account {
//properties goes here...
}

Things are working, though again, the service list is messed up. Down to the last stretch. As I have posted in http://www.nabble.com/-REST--HTTP-BINDING-Service-does-not-receive-Post-parameter-tt19986914.html#a19991022

There seems to be a problem with unmarshalling the object. I could be missing something with the xml so I am posting it here as well:

<Account xmlns="http://account.subscriber.ws.solegy.com/";>
<accountID>someVal</accountID>
<!-- other properties here-->
</Account>

I don't have a wsdl to verify things so I am pretty much lost. I have tried it as 'account' or wrapped with 'insert' tag to no avail. Would appreciate some help.

Thanks in advance.

Reply via email to