All pastes #181732 Raw Edit

Something

public text v1 · immutable
#181732 ·published 2006-09-25 10:21 UTC
rendered paste body
@WebService
@HTTPBinding(authenticationType="BASIC", authenticationRealm="myRealm")
public class Person {

  @WebMethod
  @HTTPMethod(location="{id}", method="GET")
  public GetPersonResponse getPerson(GetPerson request) throws UnkownPersonFault {
  }
  
  @WebMethod
  @HTTPMethod(location="{id}", method="POST", inputSerialization="application/x-www-form-urlencoded")
  public void updatePerson(UpdatePerson request) throws UnkownPersonFault {
  }

  @WebMethod
  @HTTPMethod(location="{id}", method="PUT", inputSerialization="application/x-www-form-urlencoded")
  public void addPerson(AddPerson request) throws PersonAlreadyExistFault {
  }

  @WebMethod
  @HTTPMethod(location="{id}", method="DELETE")
  public void deletePerson(DeletePerson request) throws UnkownPersonFault {
  }

}