Schema element types in custom adapter
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 General > Schema element types in custom adapter




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

    Schema element types in custom adapter  
Jussi Palo


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


 
11-23-05 10:51 PM

Hi,
I have a custom BTS 2004 adapter. In an orchestration, I have defined a
schema for a message that is sent through my custom adapter.

In the schema I've defined an element's type like this:
<xs:element maxOccurs="1" name="before" type="xs:string" />

Now, in my adapter I can access the message that comes from BTS, no problem.
The problem is that I need to know the type of the element that was defined
in the schema of the message. Idea behind this is that I need to put quotes
around strings but not around doubles.

Is there a way to accomplish this?

Thanks!





[ Post a follow-up to this message ]



    Re: Schema element types in custom adapter  
Younes Amar


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


 
11-23-05 10:51 PM

you can ask its XmlSchemaDatatype what the
corresponding .NET value type would be.  and for an element of type
"xs:string", you get back System.String.
HTH
Younes
"Jussi Palo" <jpalo@community.nospam> wrote in message
news:712789EC-4CF9-4AB9-8153-7949DE980D02@microsoft.com...
> Hi,
> I have a custom BTS 2004 adapter. In an orchestration, I have defined a
> schema for a message that is sent through my custom adapter.
>
> In the schema I've defined an element's type like this:
> <xs:element maxOccurs="1" name="before" type="xs:string" />
>
> Now, in my adapter I can access the message that comes from BTS, no
> problem.
> The problem is that I need to know the type of the element that was
> defined
> in the schema of the message. Idea behind this is that I need to put
> quotes
> around strings but not around doubles.
>
> Is there a way to accomplish this?
>
> Thanks!







[ Post a follow-up to this message ]



    Re: Schema element types in custom adapter  
Jussi Palo


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


 
11-24-05 12:47 PM

Hi,
thank you for your response, your instructions will surely help me later on.
But, if I understood the usage of XmlSchemaDatatype correctly, I'd need to
have the scehma in my adapter in order to determine the types of the
elements. Is this correct?

Does BizTalk send the schema or information about the schema along with the
message that is sent to the adapter, or how can the adapter determine the
types of the elements?

Regards,
Jussi

"Younes Amar" wrote:

> you can ask its XmlSchemaDatatype what the
> corresponding .NET value type would be.  and for an element of type
> "xs:string", you get back System.String.
> HTH
> Younes
> "Jussi Palo" <jpalo@community.nospam> wrote in message
> news:712789EC-4CF9-4AB9-8153-7949DE980D02@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: Schema element types in custom adapter  
WenJun Zhang[msft]


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


 
12-01-05 12:48 PM

Hi Jussi,

You shouldn't modify and post-process the document in adapter. An
approriate way to do the job is using a custom pipeline component. You can
simply retrieve the schema by using the method like GetDocumentSpecByName.

Using Schemas
http://msdn.microsoft.com/library/d...-us/sdk/htm/ebi
z_sdk_samples_zfza.asp

CustomComponent
http://msdn.microsoft.com/library/e...les_zfza.asp?fr
ame=true

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:37 AM.      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