Web Client with Web Service interfaces

Find and share HowTos to various installations / configurations!
6 posts • Page 1 of 1
MrKintaro
Posts:53
Joined: Fri Aug 16, 2013 6:56 pm

Web Client with Web Service interfaces

Post by MrKintaro »

Dear all,

I have task to implement for a project, the connection to a web Server of External system.

The information from the client is:

Parties interested in using the web service create a client based on the WSDL. The client can use the preferred programming language because interface is published in WSDL and messages are exchanged in SOAP format.

There are two Web Service interfaces:
• WebService
• WsOperator
Each Web Service exports 2 xml files:
1. one is the wdsl file: contains the main interface with the declarations of messages and operations
2. one is the xsd file: contains the description of complex types used

I have search in the help and I found the XML-RPC, Basics topic, is it correct?.

I will explain my plan:

The fist point is to establish the connection with xmlrpcClient() and xmlrpcConnectToServer(), is it correct?

afterword with xmlrpcCall can I ask for information to the webserver and with the "func" I can ask for the information provided by the web server. is it correct?

Thanks in advance for every comment and tips.

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Web Client with Web Service interfaces

Post by Gertjan van Schijndel »

XML-RPC is another protocol for webservices, which is not compatible with SOAP.
For SOAP you might want to create a control extension with for example wsdlpull. Or do it just with control code and use the tcp* (or since 3.13 the net*) functions.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Web Client with Web Service interfaces

Post by leoknipp »

Hello,

just for your information, the tcp*-CTRL-functions are still available in WinCC OA 3.13.

Best Regards
Leopold Knipp
Senior Support Specialist

MrKintaro
Posts:53
Joined: Fri Aug 16, 2013 6:56 pm

Re: Web Client with Web Service interfaces

Post by MrKintaro »

Dear Collegues,

I hope ypu can help me with more details.

I am new in the Web sevice and I am tring to undestand.

If I have undestood correct :
- Open the connection with the server with tcpOpen.
- the manual of the server is telling me the is possible to download 2 file with the following commends:

http://appserver:8080/WebService/WebServiceService?wsdl

http://appserver:8080/WebService/WsOperatorService?wsdl

- I will use netGet() to download the 2 file.

- the point now is how to proceed.

-- how my screept can udestand the fuinctions provided by the server?
the manual is telling me an example like:
1. client register itself
subscribe4Notifications("callInfo")
2. There is a call
3. Get notification of call
getNotification()

How can my script undestand the 2 funciton subscribe4Notifications and getNotification if they are not declared in any library?

Thanks.

vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

Re: Web Client with Web Service interfaces

Post by vogler »

In .Net/C# or Java you can talk to SOAP and also talk to the OA http-server, so you can use it as a mediator.
For example i connected .Net to OA ...
http://www.rocworks.at/wordpress/?p=615
or JavaScript
http://www.winccoa.net/index.php?solution_id=1023

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Web Client with Web Service interfaces

Post by mkoller »

I'd say the best approach is to implement a CTRL extension in C++ providing client side SOAP commands.
You can base the implementation on an existing library, e.g. http://www.kdab.com/kdab-products/kd-soap/

Have a look into our api examples and template for a new CTRL extension.

6 posts • Page 1 of 1