Package org.apache.axis.client

Examples of org.apache.axis.client.Stub


//    catch (javax.xml.rpc.ServiceException serviceException) {}

    try {
    it.eng.spagobi.sdk.documents.stub.DocumentsServiceServiceLocator locator = new it.eng.spagobi.sdk.documents.stub.DocumentsServiceServiceLocator();
    Remote remote = locator.getPort(it.eng.spagobi.sdk.documents.stub.DocumentsService.class);
        Stub axisPort = (Stub) remote;
        axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
        axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
        documentsService = (it.eng.spagobi.sdk.documents.stub.DocumentsService) axisPort;
      if (documentsService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)documentsService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
View Full Code Here


 
  private void _initMapsSDKServiceProxy() {
    try {
    it.eng.spagobi.sdk.maps.stub.MapsSDKServiceServiceLocator locator = new it.eng.spagobi.sdk.maps.stub.MapsSDKServiceServiceLocator();
    Remote remote = locator.getPort(it.eng.spagobi.sdk.maps.stub.MapsSDKService.class);
        Stub axisPort = (Stub) remote;
        axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
        axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
        mapsSDKService = (it.eng.spagobi.sdk.maps.stub.MapsSDKService) axisPort;
      //mapsSDKService = (new MapsSDKServiceServiceLocator()).getMapsSDKService();
      if (mapsSDKService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)mapsSDKService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
View Full Code Here

   *
   * @param soapCall the call to make to a SOAP web service
   * @return information about the SOAP response
   */
  public SoapCallReturn invokeSoapCall(SoapCall<Stub> soapCall) {
    Stub stub = soapCall.getSoapClient();
    SoapCallReturn.Builder builder = new SoapCallReturn.Builder();
    synchronized (stub) {
      Object result = null;
      try {
        result = invoke(soapCall);
      } catch (InvocationTargetException e) {
        builder.withException(e.getTargetException());
      } catch (Exception e) {
        builder.withException(e);
      } finally {
        MessageContext messageContext = stub._getCall().getMessageContext();
        try {
          builder.withRequestInfo(new RequestInfo.Builder().withSoapRequestXml(
              messageContext.getRequestMessage().getSOAPPartAsString())
                  .withMethodName(stub._getCall().getOperationName().getLocalPart())
                  .withServiceName(stub.getPortName().getLocalPart())
                  .withUrl(stub._getCall().getTargetEndpointAddress())
                  .build());
        } catch (AxisFault e) {
          builder.withException(e);
        }
        try {
View Full Code Here

TOP

Related Classes of org.apache.axis.client.Stub

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.