|
-
March 21st, 2008, 05:13 AM
#1
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
Last edited by Smetje; March 21st, 2008 at 07:37 AM.
-
March 21st, 2008, 06:54 AM
#2
Re: Implement a webservice starting from a WSDL
Right-mouse click the project -> add web reference... -> add the url to the wsdl
-
March 21st, 2008, 08:43 AM
#3
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
-
March 22nd, 2008, 04:55 AM
#4
Re: Implement a webservice starting from a WSDL
 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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|