compactframework >> interoperability problem .NET CF C# client with axis 1.1 webservice

by YnJlY2h0 » Tue, 27 Jan 2004 18:41:05 GMT


I am trying to convince the very much java minded people in my company to use .NET at least at at the client side and I said that it is very easy to interoperate while using webservices. For the full .NET framework I have no problems.

Could anyone point me to a solution for the following problem:

A .NET client (C#) for pocket pc 2003 returns the following exception while calling an Axis 1.1 web service:
An unhandled exception of type 'System.NullreferenceException' occurred in System.Web.Services.dll

Only one element of the SOAP response is nil and still the webservice method call returns a null reference. When I sniff the SOAP response I can see all the results with one element that is nil

The first part of the SOAP response (see below) shows that the element 'employees' is nil and of type ArrayOf_tns2_EmployeeInfo.

There's no problem when the elements are not nil.
I have also tried the same code and the same webservice but now used in the full .NET framework on a XP machine an there seems to be no problem handling this SOAP response. The specific element still is nil but at least the message returns correctly the result.

*** WSDL snippet ***

<complexType name="Activity"><sequence><element name="employees" nillable="true" type="impl:ArrayOf_tns2_EmployeeInfo" /><element name="employerInfo" nillable="true" type="tns1:EmployerInfo" /></sequence></complexType><complexType name="ArrayOf_tns2_EmployeeInfo"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:EmployeeInfo[]" /></restriction></complexContent></complexType>

*** SOAP response ***

<multiRef id="id4" soapenc:root="0" soapenv:encodingStyle="" xsi:type="ns12:Activity" xmlns:ns12=" xmlns:soapenc=""><employees xsi:type="ns13:ArrayOf_tns2_EmployeeInfo" xsi:nil="true" xmlns:ns13="urn:RIPWS"/><employerInfo href="#id19"/></multiRef><multiRef id="id5" soapenc:root="0" soapenv:encodingStyle="" xsi:type="ns14:Activity" xmlns:ns14="" xmlns:soapenc=""><employees xsi:type="soapenc:Array" soapenc:arrayType="ns14:EmployeeInfo[1]" xmlns:ns15="urn:RIPWS"><item href="#id20"/></employees><employerInfo href="#id21"/></multiRef>

Similar Threads

1. java webservice and .net client Interoperability - CSharp/C#

2. Problem using axis 1.1 as client

Hi all,

I am having a problem trying to consume a webservice that is developed on

I can access it without any problem using a .net client, but when I use a
java client (based on Axis 1.1), some methods work, some don't. The error
message I got is "org.apache.axis.types.URI$MalformedURIException: No scheme
found in URI..."

Anyone experienced similar problem before?

Any help is appreciated...

Thanks in advance.


3. System.InvalidCastException in .Net client consuming Axis 1.1 java web service - Asp.Net Web Service

4. .net client + Axis 1.1 server + wrapped param: null result

5. C# client (Invoke returns null) -- Axis webservice

6. Axis <-> .Net xsd:date interoperability problem

7. how to trigger default email client (.Net 1.1 with C#) - CSharp/C#

8. 500 error on VB WebService and Axis 1.1

I am deploying a VB WebService in turn running a FoxPro DLL. On the other
side, a Java App using Axis 1.1 requests information.
Once or twice a week the service stops responding. Restarting the IIS
doesn't help, the whole box needs to be restarted. I found nothing in the
event log. The only clues I have are from the web server log. There is
nothing out of the ordinary. c-ip and s-ip are always the same, the request
always goes to the same asmx. The only difference is the return code (and
the bytes transmitted).
I'm not dot net crack, adding event log capabilites or something along those
lines are an absolute very, very last resort. Is there a way to get an error
log similar to an apache or tomcat?
Funny thing is, the Java people tell me they connect via SOAP, the web log
tells me the connections use POST. Is that normal?
Thanks in advance!