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 18:39:21) DEBUG org.apache.axis.SOAPPart -> Exit: SOAPPart::getAsString(): <?xml version="1.0" encoding="UTF-8"?>

<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 18:39:21) DEBUG org.apache.axis.i18n.ProjectResourceBundle -> org.apache.axis.i18n.resource::handleGetObject(xmlSent00)

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> XML sent:

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> ---------------------------------------------------

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> POST /revdealerv2/samplewebservice.asmx HTTP/1.0

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 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> HTTP/1.1 200 OK

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> Server Microsoft-IIS/5.0

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> Date Wed, 28 Jan 2004 02:39:21 GMT

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> X-Powered-By ASP.NET

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> X-AspNet-Version 1.1.4322

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> Cache-Control private, max-age=0

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> Content-Type text/xml; charset=utf-8

(2004-01-27 18:39:21) DEBUG org.apache.axis.transport.http.HTTPSender -> Content-Length 1350

 

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!!!

 

Reply via email to