Implement a webservice starting from a WSDL
At the moment i have to forget C++ and start developping in C#,
specific starting form scratch with WebServices,
The project:
Our company has a partnership to exchange data through WebService with another company. I have to make a webservice that connects to an existant websevice and give my url to that webservice, when this is done the existant webservice will send in periods information to my webservice.
As usal i started with an easy pratical example,
1)Make new website
2)Implement web methods
3)Create windows form
4)Add Web reference to windows form
5)Make instance of service class
6)Call webmethods
This went well, but how do i create a webservice that connects to another, the only thing that i get from the company is a WSDL file,
Many thanks
Re: Implement a webservice starting from a WSDL
Right-mouse click the project -> add web reference... -> add the url to the wsdl
Re: Implement a webservice starting from a WSDL
Thanks,
I have imported the WSDL, called the method i needed but an exception happens,
"The AXIS engine could not find a target service to invoke! targetService is pushapi/PushAPITSystems"
Anyone an idee?
Thx
Re: Implement a webservice starting from a WSDL
Quote:
Originally Posted by Smetje
"The AXIS engine could not find a target service to invoke! targetService is pushapi/PushAPITSystems"
Where did this error come from? Was it from the webservice you are trying to connect to?
Have you tried to create a simple winforms app, add the web service reference and try a simple test?