soapmessage c# windows app help

  • Thread starter Thread starter plork
  • Start date Start date
P

plork

hi all

can someone help me out

i'm trying to get the soap message from a web service call in my c#
code. i'm using .net 2 and vs 2005

SoapMessage message;

message.GetReturnValue();

but it says Use of unassigned local variable 'message'

is anyone able to help
 
plork,

You have to assign a SoapMessage instance to the local variable, like
so:

SoapMessage message = null;

That will fix the compilation error, but you will want to replace null
with the actual message.

If you are going to access a web service, you might want to add a
web-reference, or use WCF in .NET 3.0, or the Web Service Extensions (WSE).
 
plork,

You have to assign a SoapMessage instance to the local variable, like
so:

SoapMessage message = null;

That will fix the compilation error, but you will want to replace null
with the actual message.

If you are going to access a web service, you might want to add a
web-reference, or use WCF in .NET 3.0, or the Web Service Extensions (WSE).

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)






can someone help me out
i'm trying to get the soap message from a web service call in my c#
code. i'm using .net 2 and vs 2005
SoapMessage message;

but it says Use of unassigned local variable 'message'
is anyone able to help- Hide quoted text -

- Show quoted text -

I've addedd a web reference to the web service and i can call it and
get the correct results

But I need to get the raw soap response, this is where i'm having
trouble

Any help much appreciated
 
I've addedd a web reference to the web service and i can call it and
get the correct results

But I need to get the raw soap response, this is where i'm having
trouble

Any help much appreciated- Hide quoted text -

- Show quoted text -


I have this

WebService service = new WebService ();
results[] results = null;
results = service.method(paramA, paramB, paramC, paramD);

How to i now get the raw soap?
 
plork,

If you want to do this, I recommend that you either issue the request
with the HttpWebRequest/HttpWebResponse classes, and handle all the
encoding/decoding of the parameters yourself, or use .NET 3.0 and WCF, which
will give you direct access to the underlying message (in a much easier way
than issuing the request yourself).


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

plork said:
I've addedd a web reference to the web service and i can call it and
get the correct results

But I need to get the raw soap response, this is where i'm having
trouble

Any help much appreciated- Hide quoted text -

- Show quoted text -


I have this

WebService service = new WebService ();
results[] results = null;
results = service.method(paramA, paramB, paramC, paramD);

How to i now get the raw soap?
 
plork,

If you want to do this, I recommend that you either issue the request
with the HttpWebRequest/HttpWebResponse classes, and handle all the
encoding/decoding of the parameters yourself, or use .NET 3.0 and WCF, which
will give you direct access to the underlying message (in a much easier way
than issuing the request yourself).

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)




On Nov 22, 2:59 pm, "Nicholas Paldino [.NET/C# MVP]"
plork,
You have to assign a SoapMessage instance to the local variable,
like
so:
SoapMessage message = null;
That will fix the compilation error, but you will want to replace
null
with the actual message.
If you are going to access a web service, you might want to add a
web-reference, or use WCF in .NET 3.0, or the Web Service Extensions
(WSE).
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

hi all
can someone help me out
i'm trying to get the soap message from a web service call in my c#
code. i'm using .net 2 and vs 2005
SoapMessage message;
message.GetReturnValue();
but it says Use of unassigned local variable 'message'
is anyone able to help- Hide quoted text -
- Show quoted text -
I've addedd a web reference to the web service and i can call it and
get the correct results
But I need to get the raw soap response, this is where i'm having
trouble
Any help much appreciated- Hide quoted text -
- Show quoted text -
I have this
WebService service = new WebService ();
results[] results = null;
results = service.method(paramA, paramB, paramC, paramD);
How to i now get the raw soap?- Hide quoted text -

- Show quoted text -

are you able to show me an example of using HttpWebRequest/
HttpWebResponse ?

i'm not allowed to goto .net 3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top