Package org.w3._2005._08.addressing

Examples of org.w3._2005._08.addressing.EndpointReferenceType


 
  /* (non-Javadoc)
   * @see com.album.dispatcher.Album#getAlbumByName(java.lang.String)
   */
  public EntryType getAlbumByName(String albumName) {
    EntryType type = new EntryType();
    type.setTitle(albumName);
    return type;
  }
View Full Code Here


   */
  public FeedType listPhotosByAlbumObject(Crediential crediential,
      EntryType album) {
    FeedType ft = new FeedType();
    ft.getEntry().add(album);
    EntryType credEntry = new EntryType();
    credEntry.setSummary(crediential.getToken());
    ft.getEntry().add(credEntry );
    return ft;
  }
View Full Code Here

  public @WebResult(name="albums") FeedType listAlbums(@WebParam(name = "crediential") Crediential crediential) {
    try {
      //TODO from JNDI property
      URL       albumURL   = new URL("http://picasaweb.google.com/data/feed/api/user/"+crediential.getUsername()+"?kind=album");
      Unmarshaller   um       = context.createUnmarshaller();
      FeedType ob = um.unmarshal(new StreamSource(albumURL.openStream()),FeedType.class).getValue();
      return ob;
    } catch (Exception e) {
      e.printStackTrace();
      throw new Error("Album request failed",e);
    }
View Full Code Here

          @WebParam(name = "albumUrl", partName = "albumUrl")
          String albumUrl) {
    try {
      URL       albumURL   = new URL(albumUrl);
      Unmarshaller   um       = context.createUnmarshaller();
      FeedType ob = um.unmarshal(new StreamSource(albumURL.openStream()),FeedType.class).getValue();
      return ob;
    } catch (Exception e) {
      e.printStackTrace();
      throw new Error("Album request failed",e);
    }
View Full Code Here

  /* (non-Javadoc)
   * @see com.album.dispatcher.Album#listPhotosByAlbumObject(org.w3._2005.atom.Crediential, org.w3._2005.atom.EntryType)
   */
  public FeedType listPhotosByAlbumObject(Crediential crediential,
      EntryType album) {
    FeedType ft = new FeedType();
    ft.getEntry().add(album);
    EntryType credEntry = new EntryType();
    credEntry.setSummary(crediential.getToken());
    ft.getEntry().add(credEntry );
    return ft;
  }
View Full Code Here

  public LoginResponse clientLogin(@WebParam(name = "requestcontext", partName = "requestcontext") LoginParameter loginParameter)
      throws ClientLoginFault {
    if(loginParameter != null && loginParameter.getEmail() != null
        && !loginParameter.getEmail().isEmpty()
        && loginParameter.getPasswd() != null){
      LoginResponse respone = new LoginResponse();
      respone.setCaptchaToken("DUMMY");
      respone.setCaptchaUrl("http://dummp.url");
      return respone;
     
    }
    return null;
  }
View Full Code Here

    public Photo getPhotoById(
        @WebParam(name = "albumId", partName = "albumId")
        int albumId,
        @WebParam(name = "photoId", partName = "photoId")
        int photoId){
      Photo photo = new Photo();
      photo.setHeight(photoId);
      photo.setWidth(albumId);
      return photo;
    }
View Full Code Here

public class ListMapKeyTest {
  public static void main(String[] args) throws MalformedURLException {
    AlbumService albm = new AlbumService(new URL("http://localhost:8080/album/json/picasa?wsdl"), new QName("http://album.com/dispatcher", "AlbumService"));
    Album port = albm.getAlbumServicePort();
    UIElements uiElementsProxy = new UIElements();
    UIElement elm1    = new UIElement();
    elm1.setName("LOGIN");
    uiElementsProxy.getElements().add(elm1    );
    UIElement elm2= new UIElement();
    elm2.setName("PASS");
    uiElementsProxy.getElements().add(elm2    );
    port.getUIElements(uiElementsProxy );
  }
View Full Code Here

public class ListMapKeyTest {
  public static void main(String[] args) throws MalformedURLException {
    AlbumService albm = new AlbumService(new URL("http://localhost:8080/album/json/picasa?wsdl"), new QName("http://album.com/dispatcher", "AlbumService"));
    Album port = albm.getAlbumServicePort();
    UIElements uiElementsProxy = new UIElements();
    UIElement elm1    = new UIElement();
    elm1.setName("LOGIN");
    uiElementsProxy.getElements().add(elm1    );
    UIElement elm2= new UIElement();
    elm2.setName("PASS");
    uiElementsProxy.getElements().add(elm2    );
    port.getUIElements(uiElementsProxy );
  }
View Full Code Here

      org.apache.ws.axis2.mtomsample.AttachmentRequest param0)
      throws Exception

  {
    AttachmentType attachmentRequest = param0.getAttachmentRequest();
    Base64Binary binaryData = attachmentRequest.getBinaryData();
    DataHandler dataHandler = binaryData.getBase64Binary();
    File file = new File(
        attachmentRequest.getFileName());
    FileOutputStream fileOutputStream = new FileOutputStream(file);
    dataHandler.writeTo(fileOutputStream);
    fileOutputStream.flush();
View Full Code Here

TOP

Related Classes of org.w3._2005._08.addressing.EndpointReferenceType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.