hello friends,
I wrote a WebService client as below
the out put I am getting is
Server did not recognize the value of HTTP Header SOAPAction: .
what still I need to incorporate to my code. Do i need to add any methods still ? and one more thing is do i need to write WSDD for this? how ?. can any bady guide me
thanQ for any greatful guidance.
Ajay.
I wrote a WebService client as below
Code:
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class AtmuClient
{
public static void main(String [] args) {
try {
String req="request";
String endpoint ="http://deleted/mims/service.asmx?WSDL";
String nameSpaceUri = "http://www.deleted.com/MIMS";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName(nameSpaceUri, "echoString") );
String ret = (String) call.invoke( new Object[] { req } );
System.out.println("Sent 'Hello!', got '" + ret + "'");
} catch (Exception e) {
System.err.println(e.toString());
}
}
}
the out put I am getting is
Server did not recognize the value of HTTP Header SOAPAction: .
what still I need to incorporate to my code. Do i need to add any methods still ? and one more thing is do i need to write WSDD for this? how ?. can any bady guide me
thanQ for any greatful guidance.
Ajay.
Comment