Probably the easiest thing to do will be to create the proxy class manually.
This should solve the issues you describe in 2 and 3. The way to do this is
to use the wsdl.exe command. There is documentation for it at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cp
grfWebServicesDescriptionLanguageToolWsdlexe.asp.
But the most important thing is that it can take either a URL or a file path
from the command line and generate a proxy class in either vb.net or c#.
This is the tool that the Add Web Reference uses under the covers. Once the
class is generated, add it to your project and you should be good to go.
Hope this helps.
Bruce Johnson [C# MVP]
http://www.objectsharp.com/blogs/bruce
> Up until now I have used MS Web Services which are fairly straight-forward.
> Now I am being asked to use some third party web services which I do not
[quoted text clipped - 10 lines]
> neccessary for the SOAP calls to their services? Why bother with web
> services?
True, I did do that and I have generated the appropriate classes
But, the odd thing and this isn't MS related, there are no methods (other
than the base methods for the ws) only properties and it appears that they
want me to format abunch of XML (to their specs) and transmit to them the
data that way. Does that sound appropriate to you? Is that standard with
non-MS 3rd party web services? I thought the whole idea was make a web
reference (like you would a local reference) and you have exposed properties
and methods and you can go to town and everything is transparent.
> Probably the easiest thing to do will be to create the proxy class manually.
> This should solve the issues you describe in 2 and 3. The way to do this is
> to use the wsdl.exe command. There is documentation for it at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cp
grfWebServicesDescriptionLanguageToolWsdlexe.asp.
> But the most important thing is that it can take either a URL or a file path
> from the command line and generate a proxy class in either vb.net or c#.
[quoted text clipped - 20 lines]
> > neccessary for the SOAP calls to their services? Why bother with web
> > services?
Bruce Johnson [C# MVP] - 08 Feb 2005 20:19 GMT
Yes and no. The yes is that formatting a bunch XML according to a spec is
the defintion of SOAP without all of the nice supporting classes ;). The no
is that if they want they're XML formatted based on a spec, they should have
included a schema in the WSDL file. And if they did, then the generated
proxy class should have classes defined that will serialize into the
appropriate XML. If they didn't, they I'd have to extend my sympathies and
suggest that the writers of the web service are a touch clueless when it
comes to how to convey their web service's interface.
Bruce Johnson [C# MVP]
http://www.objectsharp.com/blogs/bruce
> True, I did do that and I have generated the appropriate classes
> But, the odd thing and this isn't MS related, there are no methods (other
[quoted text clipped - 45 lines]
> > > neccessary for the SOAP calls to their services? Why bother with web
> > > services?