L
Lee Alexander
I am new to Web Services and am trying to get over that feeling of being
slightly lost in a foreign place so to speak. I have a few questions:
What technology should I be looking at with regards to implementing a web
service under dot net? I know this is a pretty open ended question but what
I'm looking for is a technology that will see me in good stead for the
future whilst being rooted in the *near* future to present. I have had a
look at Web Services using remoting and also WSE 2. I'm not currently
looking at ASMX as one of my restrictions is that the web service should
potentially be independent from a web server like IIS. I get the impression
from postings that remoting is probably the wrong way to go as I might have
upgrade problems when Indigo comes out; yet it seems the simplest in terms
of attaching messages to methods and automatically generating WSDL etc..
Thoughts on this?
I have had a look at WSE 2.0 and it seems more difficult to generate a WSDL
file (if not impossible) since there isn't such a tight mapping between the
message handler and the message structure. Lets say I have a message called
Add that takes two parameters and returns the result. From what I have read
for WSE I would derive from SoapReciever and override the Receive message
manually drilling into the envelopes body using XPath when the message
arrived. Another alternative would be to use SoapService which gives me a
little extra help by routing the message to a declared method; but the
declared method would still be of the form:
SoapEnvelope MyMessageHandler( SoapEnvelope message )
{
// process message
}
So I would still have to get down and dirty with some XML.
So my question here is if I use either of these ways to handle the message
presumably there would be no way of *automatically* generating the WSDL; so
I would have to create the WSDL manually, is that correct or am I missing
something obvious here? If this is the case will there be (in the future) a
more closely coupled link between the message handler and the message format
like say:
[SoapMessage[urn:math:add]]
int Add( int x, int y )
{
return x + y;
}
This would remove the hassle of having to drill into the XML to get my
parameters etc.
My next stop will be looking at Indigo so how does this fit with where I'm
trying to go?
Any help/thoughts would be much appreciated...
Regards
Lee
slightly lost in a foreign place so to speak. I have a few questions:
What technology should I be looking at with regards to implementing a web
service under dot net? I know this is a pretty open ended question but what
I'm looking for is a technology that will see me in good stead for the
future whilst being rooted in the *near* future to present. I have had a
look at Web Services using remoting and also WSE 2. I'm not currently
looking at ASMX as one of my restrictions is that the web service should
potentially be independent from a web server like IIS. I get the impression
from postings that remoting is probably the wrong way to go as I might have
upgrade problems when Indigo comes out; yet it seems the simplest in terms
of attaching messages to methods and automatically generating WSDL etc..
Thoughts on this?
I have had a look at WSE 2.0 and it seems more difficult to generate a WSDL
file (if not impossible) since there isn't such a tight mapping between the
message handler and the message structure. Lets say I have a message called
Add that takes two parameters and returns the result. From what I have read
for WSE I would derive from SoapReciever and override the Receive message
manually drilling into the envelopes body using XPath when the message
arrived. Another alternative would be to use SoapService which gives me a
little extra help by routing the message to a declared method; but the
declared method would still be of the form:
SoapEnvelope MyMessageHandler( SoapEnvelope message )
{
// process message
}
So I would still have to get down and dirty with some XML.
So my question here is if I use either of these ways to handle the message
presumably there would be no way of *automatically* generating the WSDL; so
I would have to create the WSDL manually, is that correct or am I missing
something obvious here? If this is the case will there be (in the future) a
more closely coupled link between the message handler and the message format
like say:
[SoapMessage[urn:math:add]]
int Add( int x, int y )
{
return x + y;
}
This would remove the hassle of having to drill into the XML to get my
parameters etc.
My next stop will be looking at Indigo so how does this fit with where I'm
trying to go?
Any help/thoughts would be much appreciated...
Regards
Lee