开发者

Visual DataFlex: call WebService from the web page

开发者 https://www.devze.com 2022-12-12 23:37 出处:网络
I have the web service and generated class for it. I can use this generated class in windows application as it described in Help. The question is: how can I use this generated class in the web project

I have the web service and generated class for it. I can use this generated class in windows application as it described in Help. The question is: how can I use this generated class in the web project? (the analogous actions - creating object and use its functions -, as it was in windows app,开发者_如何学编程 are not worked)


Visual Dataflex questions are best asked at: http://support.dataaccess.com

There are a couple of possibilities.

Your class may not be cWebService or you have not included it as part of a web project. For web services to be available, they MUST be part of a web project. This will usually be called webapp.src.

For functions to be available to the web service, you need to decorate them as "published"

e.g.

{ Published = True  }
{ Description = "SOAP Hello World function definition."  }
Function HelloWorld Returns String
    Function_Return "HELLO WORLD"
End_Function

Those top two lines make sure that the function is available as a SOAP or web service call.


Sorry to answer so late, I hope you've already solved it.

There's actually a tutorial section for this in the VDF Help under Tutorials > Quick Start > Consuming Your First Web Service > Consuming a Web Service in a Web Application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号