HighTechTalks DotNet Forums  

ASP.NET Web Service?

Dotnet Framework (Webservices) microsoft.public.dotnet.framework.webservices


Discuss ASP.NET Web Service? in the Dotnet Framework (Webservices) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mr. Arnold
 
Posts: n/a

Default ASP.NET Web Service? - 12-19-2007 , 05:11 AM






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

2) If I can login to the 3rd party Web service how do I post the XML to the
3rd party Web service?


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.


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.

If you can provide some examples, it would be much appreciated.




Reply With Quote
  #2  
Old   
Bob Barrows [MVP]
 
Posts: n/a

Default Re: ASP.NET Web Service? - 12-19-2007 , 06:35 AM






Mr. Arnold wrote:
Quote:
Hello,

I have this project where I am creating a ASP.NET Web service that's
I'm not clear why you are posting this to a classic ASP group
(.asp.general). Are you asking how to consume this web service from a
classic ASP application?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"




Reply With Quote
  #3  
Old   
Mr. Arnold
 
Posts: n/a

Default Re: ASP.NET Web Service? - 12-19-2007 , 07:50 AM




"Bob Barrows [MVP]" <reb01501 (AT) NOyahoo (DOT) SPAMcom> wrote

Quote:
Mr. Arnold wrote:
Hello,

I have this project where I am creating a ASP.NET Web service that's

I'm not clear why you are posting this to a classic ASP group
(.asp.general). Are you asking how to consume this web service from a
classic ASP application?
I didn't know that this was an ASP classic NG. No, I am not asking about ASP
classic, but rather it's ASP.Net. If this is not the correct NG, then I'll
find the correct one to post my questions. I know how to consume the one I
am creating for the Intranet. It's the Web service at the 3rd party site I
am concerned with consuming from my Web service.





Reply With Quote
  #4  
Old   
Bob Barrows [MVP]
 
Posts: n/a

Default Re: ASP.NET Web Service? - 12-19-2007 , 08:38 AM



Mr. Arnold wrote:
Quote:
"Bob Barrows [MVP]" <reb01501 (AT) NOyahoo (DOT) SPAMcom> wrote in message
news:uKV6SNjQIHA.4656 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Mr. Arnold wrote:
Hello,

I have this project where I am creating a ASP.NET Web service that's

I'm not clear why you are posting this to a classic ASP group
(.asp.general). Are you asking how to consume this web service from a
classic ASP application?

I didn't know that this was an ASP classic NG. No, I am not asking
about ASP classic, but rather it's ASP.Net. If this is not the
correct NG, then I'll find the correct one to post my questions.
That would be microsoft.public.dotnet.framework.aspnet.
There are also forums at www.asp.net where you can find a lot of people
to help you.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.




Reply With Quote
  #5  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: ASP.NET Web Service? - 12-19-2007 , 02:20 PM



[Extraneous newsgroup trimmed]

"Mr. Arnold" <MR. Arnold (AT) Arnold (DOT) com> wrote

Quote:
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.

Quote:
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.

Quote:
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.

Quote:
Is this a good approach to take?


http://www.microsoft.com/downloads/d...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




Reply With Quote
  #6  
Old   
Spam Catcher
 
Posts: n/a

Default Re: ASP.NET Web Service? - 12-20-2007 , 05:44 PM



"Mr. Arnold" <MR. Arnold (AT) Arnold (DOT) com> wrote in
news:#1L6NeiQIHA.4752 (AT) TK2MSFTNGP05 (DOT) phx.gbl:

Quote:
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
Depends on how the web service is built, you can use built in Windows
authentication, pass the username/password a parameter, or use WSE and
WS-Security to handle username and password tokens.

Quote:
2) If I can login to the 3rd party Web service how do I post the XML
to the 3rd party Web service?
As a string parameter or as an xmldocument/xmlnode.

Quote:
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.


Is this a good approach to take?
XSD may or may not work - sometimes it cannot generate the class files
from the XSD. If not, you're going to have to build the XML file from
scratch (i.e. with your own code rather than pre-generated code).



--
spamhoneypot (AT) rogers (DOT) com (Do not e-mail)


Reply With Quote
  #7  
Old   
Mr. Arnold
 
Posts: n/a

Default Re: ASP.NET Web Service? - 12-20-2007 , 11:01 PM




"Spam Catcher" <spamhoneypot (AT) rogers (DOT) com> wrote

Quote:
"Mr. Arnold" <MR. Arnold (AT) Arnold (DOT) com> wrote in
news:#1L6NeiQIHA.4752 (AT) TK2MSFTNGP05 (DOT) phx.gbl:

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

Depends on how the web service is built, you can use built in Windows
authentication, pass the username/password a parameter, or use WSE and
WS-Security to handle username and password tokens.

2) If I can login to the 3rd party Web service how do I post the XML
to the 3rd party Web service?

As a string parameter or as an xmldocument/xmlnode.


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.


Is this a good approach to take?

XSD may or may not work - sometimes it cannot generate the class files
from the XSD. If not, you're going to have to build the XML file from
scratch (i.e. with your own code rather than pre-generated code).

I know that the user-name and psw has to come in a SOAP message, so I'll
have to figure that out. About the XML, I was looking to create a dataset
off of the XSD, but loading it into a data.set, an error occurred stating
that another schema is involved, an include, and it doesn't know about it,
which is a *Types* schema. I have been in contact with the 3rd party vendor.
The vendor is going to have to give me more information on how to consume
their service too.

I'll hate having to build the XML manually, and I will certainly be looking
for better ways to do this.

I have also found out about this .Net Framework XSD utility that will create
a dataset from the XSD. Maybe, I get an email from the vendor with what I
need. I didn't go to work today due to other business matters.

It may come down to making a class and serialize it down to XML.






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.