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