axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mm jj <meti...@yahoo.com>
Subject java client to invoke webservice(TIBCO)
Date Mon, 30 Jan 2006 21:57:45 GMT
  I NEED some help..here is my Java client. i am trying to invoke a webservice(TIBCO) through
java client
   
  import org.apache.axis.client.*;
import javax.xml.rpc.ParameterMode;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.utils.Options;
   
  public class FibClient {
  public static void main(String[] args) throws Exception {
    String endpoint = "http://DUSU41009X1:80/Processes/SOAPServer";
    //String endpoint = "http://DUSU41009X1:8080/Processes_sp_Definition";
    String Sub = "SUBJECT";
    String Data = "DATA";
    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress(endpoint);
    call.setOperationName("Operation");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "wrapped");
    call.addParameter("op1", XMLType.XSD_STRING, ParameterMode.IN);
    call.addParameter("op2", XMLType.XSD_STRING, ParameterMode.IN);
    call.setReturnType(XMLType.XSD_STRING);
    call.setReturnType(XMLType.XSD_STRING);
    String ret = (String) call.invoke(new Object[]{Sub, Data});
    System.out.println("Got result : " + ret);
    
    
    
  }
}

   
  i am getting following errors..pls help
   
   
  init:
deps-jar:
compile-single:
run-single:
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart).
Attachment support is disabled.
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode: 
 faultString: No handler for body element
 faultActor: 
 faultNode: 
 faultDetail: 
        {}detail:<transportUri>http://DUSU41009X1:80/Processes/SOAPServer</transportUri><soapAction>&quot;&quot;</soapAction><element>Operation</element>
  No handler for body element
        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at FibClient.main(FibClient.java:24)
Exception in thread "main" 
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)

   


		
---------------------------------
Bring words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.
Mime
View raw message