Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Round 2 - InteropTestR2Base  RSS feed

 
mahesh nangare
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!