如何从Web服务调用返回Web参考. [英] How to return a web reference from a web service call.

查看:56
本文介绍了如何从Web服务调用返回Web参考.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在实现工厂模式的服务器上更改基于CORBA的C ++代码.因此,主接口具有诸如createZone,createArea等的调用,这些调用返回对象引用.

I am changing code that was CORBA based C++ on a server implementing a factory pattern. So the main interface had calls like createZone, createArea, etc. which return object references.

因此,我已经对此进行了更改,因此现在主要工厂类作为Web服务公开.我可以连接并调用工厂创建方法,但是意识到我现在需要返回的是对象实例的Web参考.我开始认为这是指定的 在wsdl中,但现在看到的就像是CORBA对象引用,只是现在是Web参考(C#客户端应用程序).

So I've changed this so now the main factory class is exposed as a web service. I can connect and call the factory create methods but realized that what I need to return now is a web reference for the object instance. I started thinking this was specified in the wsdl but now see this is just like a CORBA object ref only now a web reference (C# client app).

由于我对.NET C#开发非常了解,因此希望看到一个针对Web服务(或WCF,如果我应该使用的话)的工厂风格示例.

Since I am very green on .NET C# development I was hoping to see a factory style example for web services (or WCF if that's what I should use).

任何帮助将不胜感激.

干杯

-Scott

推荐答案

WCF问题和其他Web服务问题.

WCF issues and other Web services issues are discussed in the below forum.

https://forums.asp.net/28.aspx /1?WCF + ASMX +和+ other + Web +服务


这篇关于如何从Web服务调用返回Web参考.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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