Problem Web references in Biztalk project and xsd:choice
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Problem Web references in Biztalk project and xsd:choice




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-18-05 07: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.Referenc
e.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>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:48 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register