Farhan's Two Cents on Collaboration, Integration & Enterprise Tech.

Farhan Khan

  Home  |   Contact  |   Syndication    |   Login
  29 Posts | 0 Stories | 35 Comments | 50 Trackbacks

News

Archives

EAI Folks

EAI Standards

EAI Tools

iPhone

Relativity

UnCategorized

Recently I encountered a rather fresh error while publishing an orchestration as a web service. 'The datatype '' is missing' was the gist of the complaint during the publishing process (This error could be different in different situations but mostly it should complain about some sort of datatype).

Looking behind the scenes, my best guess was that serialization had to be the culprit directly or indirectly since thats the only non-trivial subprocess taking place during the whole publishing process (virtual directory creation, .NET project creation are trivial by definition :)). So after some investigation, I managed to isolate the problem and turned out that it was indeed XSD.exe's inability to compile the schema into a class. For the record, XSD has its limitation when it comes to interpreting xml schemas into .NET classes. XSD union element, although legal by XML standards cannot be handled properly by XSD.exe tool. Some might think that XSDObjectGen may be the cure to the above, but in my situation that couldnt help either and gave me a mysterious 'URI Formats are not supported' error.

(Please refer to http://winfx.msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_fxgenref/html/18c29a99-3e22-4ea9-971a-b4dbe8e4f476.asp for more information regarding limitations of the XSD tool.)

Luckily, the schema I was working with only required me to do a single union manipulation and thereafter running the xsd tool worked fine and created the .NET classes. Once this was successfully achieved, I ran the Publishing wizard again and as expected it published the web service like a breeze.

posted on Tuesday, July 26, 2005 9:37 PM

Feedback

# re: BizTalk Web Services Publishing Wizard & XSD.exe Limitations 9/29/2005 4:36 PM Eric Cotter
Ouch....so what did you do to fix the union problem? I'm using industry standards so...I"m thinking of creating some extensions and or pase the union's into some other recognizable synax

# re: BizTalk Web Services Publishing Wizard & XSD.exe Limitations 9/30/2005 12:16 PM Farhan Khan
Honestly I did not try any other solution than to simply avoid the union and since there were not too many 'unions' in the standard schema that I used therefore avoidance of union worked for me.

# re: BizTalk Web Services Publishing Wizard & XSD.exe Limitations 10/3/2005 1:34 PM Eric Cotter
I'm forced to think about it as I'm trying to import the HRXML.org namespace in it's entirety. ;) I will attempt to do some custom extensions ala...parsing the elements for the type union and then try to infer some simpleType's and some restrictions as per the union's intent.

Thanks again :)

Eric Cotter "XmlViking'

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: