Dynamic WSDL, in WS WSDL

BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

Recent WS WSDL posts

D2007 and HTTPRio causing access violations
Help handling HTTPRIO OnBeforeExecute and OnAfterExecute
Exception handling. Complex types
Understanding the mapping of SOAP XML to a TRemoable class?
ERemotableException descentdants not working on Client
What do I send with my SOAP ...
Problem with translated class names
Validating SOAP messages
WSDL & BizTalk 2004
Urgent help needed with the web service

 
 

WS WSDL

View :   

Latest Topics

Table Of Contents


Post Reply

Dynamic WSDL

All posts: microsoft.public.dotnet.framework.webservices
Source: microsoft.public.dotnet.framework.webservices
Sent date: 05/21/2008
From: Joe
Message:

Hi there

I hoping to get a "theoritically that's possible" kind of answer here!

What I'm trying to achieve is the ability to present a different schema to
the service consumer based on some sort of Id
unique to the consumer. So:

Consumer A : WSDL A
Consumer B : WSDL B
Consumer C : WSDL C

These schemas aren't going to be known until runtime.

I've created a WSDL extension that will allow me to get so far. By writing a
class that implements the IWsdlExportExtension interface,
I can write a specific implementation of IWsdlExportExtension.ExportContract
and within it:

XmlSchemaSet schemaSet = exporter.GeneratedXmlSchemas;

foreach (ServiceDescription wsdl in exporter.GeneratedWsdlDocuments)
{
// Or trot off to db with some form of Id and get the schema from a database
XmlReader reader = new XmlTextReader(@"C:\\TestSchemaA.xsd");
XmlSchema schema = XmlSchema.Read(reader, null);
wsdl.Types.Schemas.Add(schema);
}

And add the unique part of the schema in that way, but I don't think this is
the way as there is no way to pass through
any additional information other than:

http://www.blah.com/Service.srv?WSDL

Is this kind of approach actually possible in theory?

Joe

Post Reply

Related Messages

Table Of Contents



Other groups

WCF LOB

WSCF/WCF

BizTalk Rule Engine

BizTalk BPM, process

BizTalk BAM, activity

Biztalk Adapters

BizTalk Orchestration

BizTalk Server

WS WSDL

 

    Email TopXML