[Extraneous newsgroup trimmed]
[quoted text, click to view] "Mr. Arnold" <MR. Arnold@Arnold.com> wrote in message
news:%231L6NeiQIHA.4752@TK2MSFTNGP05.phx.gbl...
> Hello,
>
> I have this project where I am creating a ASP.NET Web service that's going
> to be consumed by an application on the Intranet. This Web service will
> access a SQL Server database, extract data from tables, create XML DOM
> that's going to be posted to 3rd party Internet Web service.
>
> I have a couple of questions.
>
> 1) If I have the user ID and PSW blah, blah for this site and the URL,
> how do I present credentials to the 3rd party Web Service from my Web
> service? I do have (URL?) WSDL that I generated so that I can from a test
> URL
How you do this will depend on the 3rd party service. Hopefully, their
documentation will tell you what they require.
[quoted text, click to view] > 2) If I can login to the 3rd party Web service how do I post the XML to
> the 3rd party Web service?
Your web service will be a client to the 3rd party service. Simply use Add
Web Reference to add a reference to their service into your project. You'll
then be able to issue calls to their service from your service.
[quoted text, click to view] >
> I have the XSD(s) for the 3 types of XML(s) that I am suppose populate and
> transmit to the 3rd party Web service.
>
> I found this link that's talking about the tool to take a XSD and generate
> the classes from them so you can come out with a serialized XML to be
> transmitted once populated.
That will probably not be necessary at all. Add Web Reference will create a
proxy class that can be used to talk to their service. It will also produce
proxy classes for all of the complex parameters to their service. It is
these other proxy classes that you'll be able to fill in, then call their
service just like it was "normal" code.
[quoted text, click to view] > Is this a good approach to take?
>
>
> <
http://www.microsoft.com/downloads/details.aspx?familyid=89e6b1e5-f66c-4a4d-933b-46222bb01eb0&displaylang=en> >
>
> What I need is some good links with examples on how to do this on how to
> make the contact with the Web service and post XML to a Web Service.
The reason you won't find many examples is that none are really needed. Any
example you find on how to consume a web service will be all that you need.
There's nothing special about consuming a web service from inside of a web
service.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer