Loading ...
Sorry, an error occurred while loading the content.

8808Round 2 - InteropTestR2Base

Expand Messages
  • maheshnangare
    Nov 2, 2002
    • 0 Attachment
      hi all

      I am trying to develope java client for Round 2- InteropTestR2Base
      wsdl.
      I am using apache axix 1.0 version.
      I am geting
      Unrecognized SOAPAction HTTP header: "http://soapinterop.org/".
      expetion.

      I guess there is some mismatch in namespace in following code.

      //////////////////////////////////////////////////////////////////////
      ///////////////////////

      javax.xml.namespace.QName p0QName = new javax.xml.namespace.QName
      ("http://schemas.xmlsoap.org/wsdl/", "inputString");
      call.addParameter(p0QName, new
      javax.xml.namespace.QName
      ("http://www.w3.org/2001/XMLSchema", "string"),
      java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
      call.setReturnType(new
      javax.xml.namespace.QName
      ("http://www.w3.org/2001/XMLSchema", "string"));
      call.setUseSOAPAction(true);
      call.setSOAPActionURI
      ("http://soapinterop.org/");
      call.setOperationStyle("rpc");
      //call.setOperationName(new
      javax.xml.namespace.QName("http://soapinterop.org/", "echoString"));
      call.setOperationName(new
      javax.xml.namespace.QName("http://soapinterop.org/", "echoString"));

      Object outputString =call.invoke(new Object
      [] {new String("msn")});
      System.out.println("Result : " +
      outputString);


      //////////////////////////////////////////////////////////////////////
      ///////////////////////


      does anyone know where could be problem in this code

      thanks in advance
      Mahesh