[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

Re: Exception when invoking axis webservice from c#

Dino Chiesa [MSFT]

8/12/2003 6:47:00 PM

have you resolved this?

if not, a couple of other questions for you:
1. what version of AXIS are you using? v1.1 was just released in June, and
includes a number of bigfixes over v1.0.

2. Can you get simple types to transfer?

3. did you check the axis mail archive?
http://marc.theaimsgroup.com/?l=axis-user&r...

-Dino


"tapas" <tapasc_pradhan@yahoo.com> wrote in message
news:8b6e752.0308040117.5d6d516d@posting.google.com...
> Hi
>
> My webservice is running on Axis server. While invoking this
> webservice I get some exception(The Stack trace is not very useful).
> The same code used to work perfectly fine in .NET version 1.0 and
> win2000. Now I'm using .NET1.1 on windows server 2003
>
> Basicakky the requeset reaches axis and a soap message is returned as
> well. This I can see in the tcpmon tool of axis.
>
> Here is the SOAP message returned by Axis
> -----------------------------------------
>
> HTTP/1.1 100 Continue
>
>
>
> HTTP/1.1 200 OK
>
> Content-Type: text/xml; charset=utf-8
>
> Transfer-Encoding: chunked
>
> Date: Mon, 04 Aug 2003 06:51:50 GMT
>
> Server: Apache Coyote/1.0
>
>
>
> 881
>
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envel...
> xmlns:xsd="http://www.w3.org/2001/XMLSc...
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance...
> <soapenv:Body>
> <ns1:InvokeRulesetResponse
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encod...
> xmlns:ns1="http://tempuri.org/...
> <ns1:InvokeRulesetReturn href="#id0"/>
> </ns1:InvokeRulesetResponse>
> <multiRef id="id0" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encod...
> xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[2]"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encod...>
> <item xsi:type="xsd:string"><ruleset_request>
> <name_and_value_pair>
> <name>command_id</name>
> <value>InvoiceProcess</value>
> </name_and_value_pair>
> </ruleset_request>
> </item>
> <item xsi:type="xsd:string"><ruleset_response>
> <return_status></return_status>
> <return_message></return_message>
> <return_values>
> <name_and_value_pair>
> <name>project_name</name>
> <value>NewHospitalAgreement</value>
> </name_and_value_pair>
> <name_and_value_pair>
> <name>ruleset_name</name>
> <value>MasterRuleset</value>
> </name_and_value_pair>
> <name_and_value_pair>
> <name>project_name</name>
> <value>Claims</value>
> </name_and_value_pair>
> <name_and_value_pair>
> <name>ruleset_name</name>
> <value>SettledAmount</value>
> </name_and_value_pair>
> <name_and_value_pair>
> <name>project_name</name>
> <value>Claims</value>
> </name_and_value_pair>
> <name_and_value_pair>
> <name>ruleset_name</name>
> <value>MCD_PostSettlement</value>
> </name_and_value_pair>
> </return_values>
> </ruleset_response>
> </item>
> </multiRef>
> </soapenv:Body>
> </soapenv:Envelope>
>
> 0
>
>
>
> The c# code of invocation is:
> -----------------------------
> public class QuickRulesService :
> System.Web.Services.Protocols.SoapHttpClientProtocol {
>
> .....
> .....
>
> results = this.Invoke("InvokeRuleset", new object[] {projectName,
> rulesetName,
> args});
>
>
> The exception at this point :
> -----------------------------
>
> StackTrace : at QuickRulesClient.QuickRulesService.InvokeRuleset(String
> projectName
> , String rulesetName, Object[] args)
> Message :Object reference not set to an instance of an object.
>
>
> Please, let me know where things are going wrong !
>
> thanks
> Tapas