| 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>
|