Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
package com.informatika.ojek.webservice;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
//Service Endpoint Interface
@WebService
@SOAPBinding(style = Style.RPC)
public interface IProfile {
@WebMethod public Account getActiveUser(String accessToken);
@WebMethod public String[] getLocation(String accessToken);
@WebMethod public boolean addPreferredLocation(String accessToken, String location);
@WebMethod public boolean delPreferredLocation(String accessToken, String location);
@WebMethod public boolean updatePreferredLocation(String accessToken, String old_location, String new_location);
@WebMethod public boolean updateProfile(String accessToken, String name, String phone, Boolean is_driver, String photo);
}
\ No newline at end of file
package com.informatika.ojek.webservice;
import javax.xml.ws.Endpoint;
//Endpoint publisher
public class Main{
public static void main(String[] args) {
Endpoint.publish("http://localhost:9999/ws/profile", new Profile());
Endpoint.publish("http://localhost:9999/ws/order", new Order());
Endpoint.publish("http://localhost:9999/ws/history", new History());
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.