BizTalk Server Orchestration - Problem Web references in Biztalk project and xsd:choice

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > March 2005 > Problem Web references in Biztalk project and xsd:choice





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem Web references in Biztalk project and xsd:choice
Jonas D

2005-03-18, 2:46 am

Hi!

I have problem with using a web reference in a Biztalk project.

I have defined an xsd that contains a choice element. It should be argument
in a webmethod. I used the "Biztalk Web Services Publishing Wizard" to
publish the schema as web services. This was no problem.

Then I wanted to call the web method from an orchestration so I added a web
reference to the Biztalk project. After that, when compiling, I get the
following errors:
> '': a part of a non-method messagetype must be of class type
> cannot find symbol 'TestWSProjectBiztalkGen.localhostTestChoiceWS.Reference.Root'
> identifier 'Root' does not exist in 'TestWSProjectBiztalkGen.localhostTestChoiceWS.Reference'; are you missing an assembly reference?


After some testing, I came to the conclusion that it is the choice group
element that causes this error. But when testing to add a similar web
reference to a "Visual C#" project, it compiles with no error.

Is this a limitation in the Biztalk web proxy? If so, what are the
limitations in the proxy (except no arrays and typed datasets)?

I attach an example xsd-document that causes this error.

Thanks,
Jonas


<?xml version="1.0" encoding="utf-16" ?>
- <xs:schema xmlns="http://TestWSProjectSchemas.Testchoice"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
targetNamespace="http://TestWSProjectSchemas.Testchoice"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="Root">
- <xs:complexType>
- <xs:sequence>
- <xs:choice>
<xs:element name="Choice1" type="xs:string" />
<xs:element name="Choice2" type="xs:string" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com