E. Crane Computing Support Forum

Providing support for all E. Crane Computing products, including POWERGEN, PBSERVICE, HARPB, VERSIONEDIT, PBLRESCUE, and PBLEXPLORER.

You are not logged in.

#1 2015-08-12 10:24:06

admin
Administrator

Generating Web Service Proxy DLLs

We've had a couple users ask whether PowerGen can automate the generation of Web Service Proxy DLLs.  Unfortunately PowerBUilder (ORCA) offers no interface to this that would allow us to integrate it in PowerGen.

But I received the following from Sybase support that might help:

PowerBuilder uses the Microsoft SDK to compile the .NET webservice
proxy dll. It uses the wsdl.exe and csc.exe utilities.     This only creates the
dll, it does not create the proxy or structures in PowerBuilder.

For example, for this wsdl: 
http://footballpool.dataaccess.eu/data/info.wso?wsdl

The following command will create the Info.cs file:
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0
Tools\wsdl.exe"
/urlkey:EndpointURL /n:WebService /parsableerrors /nologo /f
/out:"Info.cs" "htt
p://footballpool.dataaccess.eu/data/info.wso?wsdl"

Then to compile the Info.cs file to the Info.dll:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library
/nologo "InfoA.cs"

Let me if you have comments or experience with this.

Regards,

Phil

Offline

Board footer