/** * @author Juergen Hoeller */ @WebService @SOAPBinding(style = SOAPBinding.Style.RPC) public interface OrderService { String getOrder(int id) throws OrderNotFoundException; }
@WebService(endpointInterface = "com.aggregator.HandlingReportService") public class HandlingReportServiceImpl implements HandlingReportService {
/** * * @param arg0 * @throws HandlingReportErrors_Exception */ @WebMethod @RequestWrapper(localName = "submitReport", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/", className = "com.aggregator.SubmitReport") @ResponseWrapper(localName = "submitReportResponse", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/", className = "com.aggregator.SubmitReportResponse") public void submitReport( @WebParam(name = "arg0", targetNamespace = "") HandlingReport arg0) throws HandlingReportErrors_Exception ;
@WebMethod String sayHello(); }
@Override public void submitReport(@WebParam(name = "arg0", targetNamespace = "") HandlingReport handlingReport) throws HandlingReportErrors_Exception { final List<String> errors = new ArrayList<String>(); final Date completionTime = parseCompletionTime(handlingReport, errors); final VoyageNumber voyageNumber = parseVoyageNumber(handlingReport.getVoyageNumber(), errors); final HandlingEvent.Type type = parseEventType(handlingReport.getType(), errors); final UnLocode unLocode = parseUnLocode(handlingReport.getUnLocode(), errors); for (String trackingIdStr : handlingReport.getTrackingIds()) { final TrackingId trackingId = parseTrackingId(trackingIdStr, errors); if (errors.isEmpty()) { final Date registrationTime = new Date(); final HandlingEventRegistrationAttempt attempt = new HandlingEventRegistrationAttempt( registrationTime, completionTime, trackingId, voyageNumber, type, unLocode ); applicationEvents.receivedHandlingEventRegistrationAttempt(attempt); } else { logger.error("Parse error in handling report: " + errors); final HandlingReportErrors faultInfo = new HandlingReportErrors(); throw new HandlingReportErrors_Exception(errors.toString(), faultInfo); } } }
String wsdl = ann.wsdlLocation(); if (StringUtils.hasText(wsdl)) { try { String ns = ann.targetNamespace(); if (StringUtils.hasText(ns)) { setNamespaceUri(ns); String sn = ann.serviceName(); if (StringUtils.hasText(sn)) { setServiceName(sn); String pn = ann.portName(); if (StringUtils.hasText(pn)) { setPortName(pn);
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(buildHttpContext(endpoint, annotation.serviceName())); }
/** * Terminate a long running action * * @param topicId The actionId returned by one of the download or checkout methods * @return An SDownloadResult containing the serialized data * @throws ServerException, UserException */ @WebMethod(action = "terminateLongRunningAction") void terminateLongRunningAction( @WebParam(name = "topicId", partName = "getDownloadData.topicId") Long topicId) throws ServerException, UserException;
@WebService(targetNamespace = "http://www.jboss.org/jbossas/quickstarts/wshelloworld/HelloWorld") public interface HelloWorldService { @WebMethod String sayHello(); } }
String wsdl = ann.wsdlLocation(); if (StringUtils.hasText(wsdl)) { try { String ns = ann.targetNamespace(); if (StringUtils.hasText(ns)) { setNamespaceUri(ns); String sn = ann.serviceName(); if (StringUtils.hasText(sn)) { setServiceName(sn); String pn = ann.portName(); if (StringUtils.hasText(pn)) { setPortName(pn);
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName())); }
/** * @param name Name of the QueryEngine * @return QueryEngine * @throws ServerException, UserException */ @WebMethod(action = "getQueryEngineByName") SQueryEnginePluginConfiguration getQueryEngineByName( @WebParam(name = "name", partName = "getQueryEngineByName.name") String name) throws ServerException, UserException;
/** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.1 in JDK 6 * Generated source version: 2.1 * */ @WebService(name = "HandlingReportService", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/") @XmlSeeAlso({ ObjectFactory.class }) public interface HandlingReportService { /** * * @param arg0 * @throws HandlingReportErrors_Exception */ @WebMethod @RequestWrapper(localName = "submitReport", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/", className = "com.aggregator.SubmitReport") @ResponseWrapper(localName = "submitReportResponse", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/", className = "com.aggregator.SubmitReportResponse") public void submitReport( @WebParam(name = "arg0", targetNamespace = "") HandlingReport arg0) throws HandlingReportErrors_Exception ; }
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(buildHttpContext(endpoint, annotation.serviceName())); }
/** * Get all checkouts of the given project * * @param poid The ObjectID of the Project * @return A list of Checkouts belonging to this Project * @throws ServerException, UserException */ @WebMethod(action = "getAllCheckoutsOfProject") List<SCheckout> getAllCheckoutsOfProject( @WebParam(name = "poid", partName = "getAllCheckoutsOfProject.poid") Long poid) throws ServerException, UserException;
/** * @author Juergen Hoeller */ @WebService(serviceName="OrderService", portName="OrderService", endpointInterface = "org.springframework.remoting.jaxws.OrderService") public class OrderServiceImpl implements OrderService { @Resource private WebServiceContext webServiceContext; @Override public String getOrder(int id) throws OrderNotFoundException { Assert.notNull(this.webServiceContext, "WebServiceContext has not been injected"); if (id == 0) { throw new OrderNotFoundException("Order 0 not found"); } return "order " + id; } }
@Override protected void publishEndpoint(Endpoint endpoint, WebService annotation) { endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName())); }
/** * Get a list of revisions a user has committed * * @param uoid ObjectID of the Project * @return A list of Revisions belonging to this Project * @throws ServerException, UserException */ @WebMethod(action = "getAllRevisionsByUser") List<SRevision> getAllRevisionsByUser( @WebParam(name = "uoid", partName = "getAllRevisionsOfUser.uoid") Long uoid) throws ServerException, UserException;
/** * Get a list of users that have been authorized on the given project * * @param poid * @return A list of all users authorized on the given project * @throws ServerException, UserException */ @WebMethod(action = "getAllAuthorizedUsersOfProject") List<SUser> getAllAuthorizedUsersOfProject( @WebParam(name = "poid", partName = "getAllAuthorizedUsersOfProject.poid") Long poid) throws ServerException, UserException;
/** * @param poid * @param sService * @return * @throws ServerException * @throws UserException */ @WebMethod(action="addNewServiceToProject") Long addNewServiceToProject( @WebParam(name = "poid", partName = "addNewServiceToProject.poid") Long poid, @WebParam(name = "sService", partName = "addNewServiceToProject.sService") org.bimserver.interfaces.objects.SNewService sService, @WebParam(name = "sAction", partName = "addNewServiceToProject.sAction") org.bimserver.interfaces.objects.SAction sAction) throws ServerException, UserException;