M
Marcin Sulecki
Hello!
I've problem with call XML Web Services (.NET Framework) from middlet with
library ksoap1. After call method call() I haven't any response or error
message.
What am I doing wrong?
XML Web Services C#/ASP.NET code:
[System.Web.Services.Protocols.SoapRpcService]
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
[System.Web.Services.Protocols.SoapRpcMethod]
public string HelloWorld()
{
return "Hello World";
}
}
Client code (java/j2me/ksoap1):
HttpTransport transport = null;
SoapObject soap = new SoapObject("http://tempuri.org","HelloWorld");
transport = new HttpTransport();
transport.setUrl("http://localhost/WSHello/Service1.asmx");
transport.setSoapAction("http://tempuri.org/HelloWorld");
transport.debug = true;
try
{
transport.call(soap); // <----- this
}
catch(Exception ex)
{
System.out.println(ex);
}
I've problem with call XML Web Services (.NET Framework) from middlet with
library ksoap1. After call method call() I haven't any response or error
message.
What am I doing wrong?
XML Web Services C#/ASP.NET code:
[System.Web.Services.Protocols.SoapRpcService]
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
[System.Web.Services.Protocols.SoapRpcMethod]
public string HelloWorld()
{
return "Hello World";
}
}
Client code (java/j2me/ksoap1):
HttpTransport transport = null;
SoapObject soap = new SoapObject("http://tempuri.org","HelloWorld");
transport = new HttpTransport();
transport.setUrl("http://localhost/WSHello/Service1.asmx");
transport.setSoapAction("http://tempuri.org/HelloWorld");
transport.debug = true;
try
{
transport.call(soap); // <----- this
}
catch(Exception ex)
{
System.out.println(ex);
}