> I have a web service being consume by a new client. The WebMethod they are
> calling is called Process.
[quoted text clipped - 31 lines]
>
> Mike
you can do all of that. but it is not required.
There are attributes that you can attach to your existing Webmethod and
webservice.
example: this sets the element name and namespace of both the request and
response .
[SoapDocumentMethod
("",
RequestElementName="RequestElement",
ResponseElementName="ResponseElement",
RequestNamespace="urn:MyRequestNamespace"
ResponseNamespace= "urn:MyResponseNamespace",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
check the msdn doc on the SoapDocumentMethodAttribute
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebservicesprotoco
lssoapdocumentmethodattributeclasstopic.asp
-Dino
> You can save the generated wsdl, then change it accordingly, I would
> recommend using XMLSpy or other WSDL authoring tool, then regenerate the
[quoted text clipped - 39 lines]
>>
>> Mike
erymuzuan - 22 Feb 2005 05:49 GMT
My recommendation is using WSDL 1st approach. but this may be out of
reach to certain people especially beginners to Web Services. So working
this mickey mouse way may help them to understand the process of
creating a lasting and good web services. especially the relationship
between schemas, messages and port types.
regards
erymuzuan mustap
> you can do all of that. but it is not required.
> There are attributes that you can attach to your existing Webmethod and
[quoted text clipped - 60 lines]
>>>
>>>Mike
Dino Chiesa [Microsoft] - 22 Feb 2005 20:05 GMT
Yes, I agree that "WSDL First" is preferred for interoperability.
In this case, the SoapDocumentAttribute may be sufficient to do the job. We
are talking only about the response element here.
Either way works. The "WSDL First" approach is a bit of an uphill struggle
with the current set of tools. For example wsdl.exe /server generates an
abstract class. You might think to just inherit from this class and then
provide your concrete implementation, but this will not work, because the
.NET webservices runtime depends on the attributes being attached to the
class itself. The .NET runtime will not interrogate and utilize the
attributes on the generated class, if you inherit from it. So in effect you
must cut-and-paste all the attributes from the generated type into your
derived type. Or, alternatively, modify the generated file to remove the
"abstract" and provide implementations directly.
In short, you have to "fight the tools" in order to practice WSDL first,
today. So for this reason I recommend it for people who are comfortable
doing so, where interop is a key priority.
If it is just the substitution of one element name for another, then the use
of an inline attribute should be fine. And simpler.
-Dino
> My recommendation is using WSDL 1st approach. but this may be out of reach
> to certain people especially beginners to Web Services. So working this
[quoted text clipped - 70 lines]
>>>>
>>>>Mike