Package org.jboss.ws.core.jaxrpc.client

Examples of org.jboss.ws.core.jaxrpc.client.CallImpl.addParameter()


      call.setTargetEndpointAddress(TARGET_ENDPOINT_ADDRESS);

      // Add a bound header to the call
      CallImpl mycall = (CallImpl)call;
      QName xmlName = new QName(HEADER_NAMESPACE_URI, "headerMsg");
      mycall.addParameter(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.OUT, true);

      // Add an unbound header to the call
      xmlName = new QName("http://otherns", "HeaderValue");
      call.addUnboundHeader(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.OUT);
View Full Code Here


      CallImpl call = (CallImpl)service.createCall();
      call.setOperationName(new QName("http://org.jboss.ws/2004", "testAttachment"));

      QName xmlType = Constants.TYPE_LITERAL_STRING;
     
      call.addParameter("String_1", xmlType, String.class, ParameterMode.IN);
      call.addParameter("foo", Constants.TYPE_MIME_TEXT_PLAIN, String.class, ParameterMode.IN);
      call.setReturnType(Constants.TYPE_MIME_TEXT_PLAIN, String.class);

      OperationMetaData opMetaData = call.getOperationMetaData();
View Full Code Here

      call.setOperationName(new QName("http://org.jboss.ws/2004", "testAttachment"));

      QName xmlType = Constants.TYPE_LITERAL_STRING;
     
      call.addParameter("String_1", xmlType, String.class, ParameterMode.IN);
      call.addParameter("foo", Constants.TYPE_MIME_TEXT_PLAIN, String.class, ParameterMode.IN);
      call.setReturnType(Constants.TYPE_MIME_TEXT_PLAIN, String.class);

      OperationMetaData opMetaData = call.getOperationMetaData();

      try
View Full Code Here

      // Tests that involve a header value use SEI method: echoStringTwo
      String opName = (getName().endsWith("BoundHeader") ? "echoStringTwo" : "echoStringOne");
      call.setOperationName(new QName("http://org.jboss.ws/2004", opName));

      call.addParameter("String_1", Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.IN);

      opMetaData = call.getOperationMetaData();
      opMetaData.getEndpointMetaData().setServiceEndpointInterfaceName(SOAPBindingTestService.class.getName());

      ParameterMetaData returnParam = new ParameterMetaData(opMetaData, new QName(Constants.DEFAULT_RPC_RETURN_NAME), Constants.TYPE_LITERAL_STRING, "java.lang.String");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.