VS.NET, consuming AXIS WebServices

  • Thread starter Thread starter Andreas Schulz
  • Start date Start date
A

Andreas Schulz

Hi,

I have a PPC application which uses WebServices deployed with AXIS.
Calling a WebService with an integer as return type works fine. But If
my WebService has an object type as return type I do not get any
response from the webservice. Can anyone help?

Thx
 
A couple things:

1. Do you have the tcp monitor running that axis provides to view the
messages?

2. Are you able to consume the webservice from a java client or a
regular .net client?

3. Do your objects happen to contain any arrays?

Rob
 
Hi Rob,

1. the axis tcp monitor runs and shows the incomig soap message from the
PPC client correctly and also shows some outgoing soap message.

2. From within java I can fully use the webservice. Everything works
just fine. Request and response are all as expected.

3. The response I expect is a xml structure, wrapped in a soap envelope
etc. On server side I declared "anytype" as return type in axis.

Today I tested a bit and found out that consuming the webservice with
primitive data types works great. But if I set the service's return type
to "anytype" I get on PPC site the information tha my input parameter is
an object (all right so far, that works ok) and the web services method
return type is an object, too, e.g.

object WebService.ThisIsMyWebServiceMethod(object obj);

If I now call the WebService method that way:

object o = WebService.ThisIsMyWebServiceMethod("any object here");

I always get a null object back.

So how can I consume webservices that have complex return types? Any ideas?

Are the information enough to evaluate my pobelm or should I give a
more detailed example?

Thx for helping

Andreas
 
Andreas Schulz said:
Hi Rob,

1. the axis tcp monitor runs and shows the incomig soap message from the
PPC client correctly and also shows some outgoing soap message.

2. From within java I can fully use the webservice. Everything works
just fine. Request and response are all as expected.

3. The response I expect is a xml structure, wrapped in a soap envelope
etc. On server side I declared "anytype" as return type in axis.

Today I tested a bit and found out that consuming the webservice with
primitive data types works great. But if I set the service's return type
to "anytype" I get on PPC site the information tha my input parameter is
an object (all right so far, that works ok) and the web services method
return type is an object, too, e.g.

object WebService.ThisIsMyWebServiceMethod(object obj);

If I now call the WebService method that way:

object o = WebService.ThisIsMyWebServiceMethod("any object here");

I always get a null object back.

So how can I consume webservices that have complex return types? Any ideas?

Are the information enough to evaluate my pobelm or should I give a
more detailed example?

Thx for helping

Andreas

Change to RPC encoding. This is apparently a small bug in the way CF
handles SOAP packets. We do the same thing at our application.
Turned out to be a big headache!

-a

http://groups.google.com/groups?hl=...soft.public.dotnet.framework.compactframework
 
Back
Top