|
Hi, I am new to axis and could use some help. I looked
through the mailing lists but did not find an answer for my problem. I am using axis 1.1 to consume a simple .NET web service. I
believe I have written my client code correctly and I am able to get a response
from the web service, but the response indicates that the web service wasn’t
able to read the string parameter that I passed, because no dataset is included
in the response. Looking at my logs, it seems to me that the soap envelope in
the soap request is in fact null, and therefore I am
not sending the parameter. Below I’ve included excerpts from my logs and
my client code in which I call the web service. Am I doing something wrong? Am
I just reading the logs incorrectly? Here are the log messages: (2004-01-27 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <PointsLogByRevId soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <strRevId xsi:type="xsd:string">100756414</strRevId> </PointsLogByRevId> </soapenv:Body> </soapenv:Envelope> (2004-01-27 (2004-01-27 (2004-01-27 (2004-01-27 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml,
application/dime, multipart/related, text/* User-Agent: Axis/1.1 Host: www.mazdaupdate.com Cache-Control: no-cache Pragma: no-cache SOAPAction: "http://tempuri.org/RevDealerV2/SampleWebService/PointsLogByRevId" Content-Length: 432 null (2004-01-27 (2004-01-27 (2004-01-27 (2004-01-27 (2004-01-27 (2004-01-27 (2004-01-27 (2004-01-27 Here is my client code: Service
service = new Service(); Call
call = (Call)service.createCall(); call.setTargetEndpointAddress(new URL("http://www.mazdaupdate.com/revdealerv2/samplewebservice.asmx")); call.setOperationName("PointsLogByRevId"); call.addParameter("strRevId",XMLType.XSD_STRING,ParameterMode.IN); call.setReturnType(XMLType.XSD_STRING); call.setUseSOAPAction(true); call.setSOAPActionURI("http://tempuri.org/RevDealerV2/SampleWebService/PointsLogByRevId"); String returnValue
= (String)call.invoke(new Object[] {"100756414"}); Thanks for your help!!! |
