soapmessage c#windows app help [英] soapmessage c# windows app help

查看:83
本文介绍了soapmessage c#windows app help的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



嗨所有


有人可以帮帮我


我想要得到的来自我的c#

代码中的Web服务调用的soap消息。我正在使用.net 2和vs 2005


SoapMessage消息;


message.GetReturnValue();


但它表示使用未分配的本地变量''消息''


是任何人都可以提供帮助


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

推荐答案

这可能会有所帮助

http://www.codeproject.com/useritems...extraction.asp


干杯,

Husam Al-A''araj


" plork"写道:
This may help

http://www.codeproject.com/useritems...extraction.asp

Cheers,
Husam Al-A''araj

"plork" wrote:

>

嗨所有


有人可以帮助我


我试图通过我的c#

代码从Web服务调用中获取soap消息。我正在使用.net 2和vs 2005


SoapMessage消息;


message.GetReturnValue();


但它表示使用未分配的本地变量''消息''


是任何人都可以提供帮助
>
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


11月22日下午12:41,Husam Al-A''''araj

< HusamAlAa ... @ discussion.microsoft.comwrote:
On Nov 22, 12:41 pm, Husam Al-A''''araj
<HusamAlAa...@discussions.microsoft.comwrote:

这可能会有所帮助

http://www.codeproject.com/useritems...extraction.asp

干杯,

Husam Al-A ''araj


" plork"写道:
This may help

http://www.codeproject.com/useritems...extraction.asp

Cheers,
Husam Al-A''araj

"plork" wrote:

嗨所有
hi all


有人可以帮助我
can someone help me out


我试图通过我的c#

代码从Web服务调用中获取soap消息。我正在使用.net 2和vs $
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消息;
SoapMessage message;


message.GetReturnValue();
message.GetReturnValue();


但它表示使用未分配的局部变量''message''
but it says Use of unassigned local variable ''message''


是任何人都能帮忙 - 隐藏引用的文字 -
is anyone able to help- Hide quoted text -



- 显示引用的文字 -


- Show quoted text -



我试过这个例子


但我在这行代码上出错了


doc.LoadXml(SoapMessage);


System.Web.Services.Protocols.SoapMessage''是''type''但是用'

就像''变量''


我不知道如何解决它


I''ve tried this example

but i get an error on this line of code

doc.LoadXml(SoapMessage);

System.Web.Services.Protocols.SoapMessage'' is a ''type'' but is used
like a ''variable''

I don''t know how to solve it


plork,


你必须将一个SoapMessage实例分配给局部变量,比如

所以:


SoapMessage message = null;


那个将修复编译错误,但您将要用实际消息替换null




如果您要访问一个Web服务,您可能想要添加一个

Web引用,或者在.NET 3.0中使用WCF,或者使用Web服务扩展(WSE)。

-

- Nicholas Paldino [.NET / C#MVP]

- mv * @ spam。 guard.caspershouse.com


" plork" < pl ****** @ hotmail.comwrote in message

news:7f ************************ ********** @ j20g2000 hsi.googlegroups.com ...
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]
- mv*@spam.guard.caspershouse.com

"plork" <pl******@hotmail.comwrote in message
news:7f**********************************@j20g2000 hsi.googlegroups.com...

>

嗨所有


有人可以帮助我吗


我想从我的网络服务电话中获取肥皂消息#

代码。我正在使用.net 2和vs 2005


SoapMessage消息;


message.GetReturnValue();


但它表示使用未分配的本地变量''消息''


是任何人都可以帮助
>
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


这篇关于soapmessage c#windows app help的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆