访问SOAP对象 [英] Access to SOAP Objects

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

问题描述

我还没上过课,我有一些MS帮助设置,但是我用
写了一个.Net WS,它使用SOAP创建一个代理类响应。工作得很好。

并且以一种好的方式,IDE已经隐藏了SOAP实现,所以从

我的结束我只是创建,传回我的XML代理
WS的客户端消费者有1)包含整个SOAP

响应的文本文件,最近2)平均响应大小以字节为单位。 SOAP

组件。


我没有时间弄清楚如何公开SOAP对象,所以是

只能创建反映我的XML类序列化的文件。


现在我需要弄清楚如何为我自己的教育公开SOAP对象

和故障排除,buit也能够知道如何回答问题

这样。


我最初的看法是,如果这很容易,为什么不能客户只需确定尺寸

即可获得响应。应该是相同的号码。但我想知道如何做到这一点。

I hadn''t had a class yet and I had some MS help on this to set up, but I
wrote a .Net WS that creates a proxy class response using SOAP. Works fine.
And in kind of a good way, the IDE has hidden the SOAP implementation so from
my end I''m just creating, passing back my XML proxy class.

The client side consumer of WS has for 1) text file containing entire SOAP
response and recently 2) average size of response in bytes to iclude SOAP
components.

I hadn''t had the time to figure out how to expose the SOAP objects, so was
only able to create file reflecting my XML class serialized out.

Now I need to figure out how to expose the SOAP objects for my own education
and troubleshooting, buit also to be able to know how to answer questions
like this.

My initial take was if this was so easy why can''t client just determine size
of response as they receive it. Ought to be same number. But I would like
to know how to do this.

推荐答案

嗨道格,

从您的描述中,您正在处理一些Web服务消息交换

任务并让一些程序访问SOAP消息或相关的

对象,更正?


至于问题,我仍然不太确定你的详细情节,

你会对应用程序或服务提供一些进一步的解释

你正在开发还是消费?一般来说,对于.NET webservice,如果你还使用基于.net框架的客户端来消费它,你只需生成客户端代理类的

并通过webmethod调用webmethod客户端代理,你不需要处理底层的SOAP消息。此外,任何可以XML序列化的对象都可以通过XML传递给web方法,并通过XML传递(并嵌入到SOAP消息中)。这里是否需要访问原始SOAP内容?


如果确实需要访问webservice的基础SOAP XML内容

方法调用,你有以下方法:


**通过非开发方法,可以使用一些http或TCP跟踪实用程序来

捕获webservice服务器和

客户端之间发送的底层SOAP消息


**对于ASP.NET webservice,你也可以使用SOAP扩展来

以编程方式获取底层SOAP消息内容(例如创建一个
消息记录器)。


#SOAP消息修改使用SOAP扩展
http://msdn2.microsoft.com/ en-us / library / esw638yk.aspx


如果我在这里遗漏了任何内容或任何其他具体问题,请

随时让我知道。


此致,


Steven Cheng


Microsoft MSDN在线支持主管


===== =============================================


通过电子邮件收到我的帖子通知?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。


注意:MSDN托管新闻组支持服务是针对非紧急问题

如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx


==================================== ==============

此帖子按原样提供。没有保证,也没有赋予任何权利。


Hi Doug,

From your description, you''re dealing with some webservice message exchange
task and have some program accesing the SOAP message or the related
objects, correct?

As for the problem, I''m still not quite sure on your detailed scenaro,
would you provide some further explanation on the application or service
you''re developing or consuming? Generally, for .NET webservice, if you''re
also using .net framework based client to consume it, you simply generate
the client proxy class and calling webmethod through the client proxy, you
do not need to deal with the underlying SOAP message. Also, any objects
that can be XML serialized can be passed in the webmethod via XML
serialization(and embeded in SOAP message). Is there any particular
requirement here that you need to access the raw SOAP content?

If you do need to access the underlying SOAP XML content of webservice
method calls, you have the following means:

** through non-dev approach, you can use some http or TCP trace utility to
capture the underlying SOAP message sent between webservice server and
client

** for ASP.NET webservice, you can also use SOAP extension to
programmatically get the underlying SOAP message content(e.g create a
message logger).

#SOAP Message Modification Using SOAP Extensions
http://msdn2.microsoft.com/en-us/library/esw638yk.aspx

If there is anything I missed here or any other specific questions, please
feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



本身没有任何问题。我只想知道如何查看SOAP

实现和对象。在最初的单元测试期间我被问到并且b $ b系统测试提供了收到和发送的整个SOAP消息以及最近的更多

,发送的SOAP响应的平均大小。 MSVS做了一个非常棒的实现,隐藏了很多,我很欣赏它。我只想稍微看看有问题。我会看你的链接。谢谢。


" Steven Cheng [MSFT]"写道:
There isn''t any problem per se. I just want to know how to view the SOAP
implementation and objects. I was asked during initial unit testing and
system testing to supply entire SOAP message received and sent and more
recently, average size of SOAP response sent. MSVS did a wonderful
implementation that hides much and I can appreciate that. I''d just like to
look under the covers a bit. I''ll look at your link. Thank you.

"Steven Cheng[MSFT]" wrote:

嗨Doug,


从您的描述中,您正在处理一些网络服务消息交换
任务并有一些程序访问SOAP消息或相关的

对象,对吗?


至于问题,我是仍然不太确定你的详细情节,

你会对应用程序或服务提供一些进一步的解释

你正在开发或消费?一般来说,对于.NET webservice,如果你还使用基于.net框架的客户端来消费它,你只需生成客户端代理类的

并通过webmethod调用webmethod客户端代理,你不需要处理底层的SOAP消息。此外,任何可以XML序列化的对象都可以通过XML传递给web方法,并通过XML传递(并嵌入到SOAP消息中)。这里是否需要访问原始SOAP内容?


如果确实需要访问webservice的基础SOAP XML内容

方法调用,你有以下方法:


**通过非开发方法,可以使用一些http或TCP跟踪实用程序来

捕获webservice服务器和

客户端之间发送的底层SOAP消息


**对于ASP.NET webservice,你也可以使用SOAP扩展来

以编程方式获取底层SOAP消息内容(例如创建一个
消息记录器)。


#SOAP消息修改使用SOAP扩展
http://msdn2.microsoft.com/ en-us / library / esw638yk.aspx


如果我在这里遗漏了任何内容或任何其他具体问题,请

随时让我知道。


Sincer ely,


Steven Cheng


Microsoft MSDN在线支持主管


===== =============================================


通过电子邮件收到我的帖子通知?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。


注意:MSDN托管新闻组支持服务是针对非紧急问题

如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx


==================================== ==============


此帖子按原样提供。没有保证,也没有授予任何权利。


Hi Doug,

From your description, you''re dealing with some webservice message exchange
task and have some program accesing the SOAP message or the related
objects, correct?

As for the problem, I''m still not quite sure on your detailed scenaro,
would you provide some further explanation on the application or service
you''re developing or consuming? Generally, for .NET webservice, if you''re
also using .net framework based client to consume it, you simply generate
the client proxy class and calling webmethod through the client proxy, you
do not need to deal with the underlying SOAP message. Also, any objects
that can be XML serialized can be passed in the webmethod via XML
serialization(and embeded in SOAP message). Is there any particular
requirement here that you need to access the raw SOAP content?

If you do need to access the underlying SOAP XML content of webservice
method calls, you have the following means:

** through non-dev approach, you can use some http or TCP trace utility to
capture the underlying SOAP message sent between webservice server and
client

** for ASP.NET webservice, you can also use SOAP extension to
programmatically get the underlying SOAP message content(e.g create a
message logger).

#SOAP Message Modification Using SOAP Extensions
http://msdn2.microsoft.com/en-us/library/esw638yk.aspx

If there is anything I missed here or any other specific questions, please
feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



感谢您的回复Doug,


当然。如果您需要任何进一步的帮助,请随时在此发布。


此致,


Steven Cheng


Microsoft MSDN在线支持主管

此帖子按原样提供。没有保证,也没有授予任何权利。

Thanks for your reply Doug,

Sure. If you need any further help on this, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


这篇关于访问SOAP对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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