I am testing web services in .NET for the first time. I am almost there, but I can’t seem to consume the web service. I know this post is similar to about 5-6 other posts on this site, but I have reviewed them, and still can’t get the syntax correct.
So far, I have:
-Create a simple web service that creates a directory
-Worked in development environment, but took some trouble shooting to get to work on live server
-I can pull up the “automagically” generated .NET we service page.
-Added web service reference – can now see the reference in my solution explorer and in intellisense.
Update:
Here is a link to the webservice itself:
http://67.78.188.50/Jservices/Service1.asmx
The web service accepts a string (name of directory e.g /test/directory). However, when I enter the name of the Web Reference (ServiceReference1) – I don’t get the methods I expect…
Here are my options with the ServiceReference1 Object…
ServiceReference1.makeDirRequest
ServiceReference1.makeDirRequestBody
ServiceReference1.makeDirResponse
ServiceReference1.makeDirResponseBody
ServiceReference1.Service1Soap
ServiceReference1.Service1SoapChannel
ServiceReference1.Service1SoapClient
Pass, you haven’t posted enough code to see what you have done
I would strongly recommend that your use WCF
Given your sample names proved, you need
Download one of the many samples on the web (plenty on codeproject) and get the sample working first. If you cant get that to go then something else is wrong with you Windows installation