Re: Dynamic web service methods
- From: "John Saunders [MVP]" <john.saunders at trizetto.com>
- Date: Thu, 3 Apr 2008 08:13:37 -0400
"blackhawk" <blackhawk@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:7D66267A-C83A-43F7-BAF7-BE8CF80BF525@xxxxxxxxxxxxxxxx
John,
I have been able to get behind the web service using IHttpHandler and
construct most of the WSDL from the ServiceDescriptions, but I am stuck on
several aspects:
1) When I programmatically create a schema and then compile it (using a
SchemaSet or just the Schema itself), it does not get included in generated
WSDL. I don't get any errors, just nothing happens.
2) Aside from that, now that I have augmented the WSDL and created a new
operation, I am not sure how to properly intercept the method call and then
return the appropriate soap response. I always get a message that the
response could not be parsed.
What I attempted to do was intercept the POST request and send back a soap
response that looks like:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<soap:Body>
<Result>
<option>test</option>
<value>test</value>
</Result>
</soap:Body>
</soap:Envelope>
And here is the WSDL that I generated
A quick read of your WSDL shows that the response should be more like this:
<soap:Envelope>
<soap:Body>
<SampleViewResponse>
<SubsetResult/>
<SubsetResult/>
</SampleViewResponse>
</soap:Body>
</soap:Envelope>
--
--------------------------------------------------------------------------------
John Saunders | MVP – Windows Server System – Connected System Developer
.
- Follow-Ups:
- Re: Dynamic web service methods
- From: blackhawk
- Re: Dynamic web service methods
- References:
- Dynamic web service methods
- From: blackhawk
- Re: Dynamic web service methods
- From: John Saunders [MVP]
- Re: Dynamic web service methods
- From: blackhawk
- Dynamic web service methods
- Prev by Date: Re: Generate interface from wsdl [SOLVED]
- Next by Date: Re: Lifecycle of .Net Web Service
- Previous by thread: Re: Dynamic web service methods
- Next by thread: Re: Dynamic web service methods
- Index(es):
Relevant Pages
|