Re: Huge problem with generating response schema using SQL Adapter

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The whole idea is your Select should generate data plus *text with schema*
(two rowsets, one with schema is one row - one field with text of the
schema).
Check this.
You should not care about data (for example about "top 1" or "top 1") but
about the right schema. After generating schemas from the Wizard you can
restore the Select to the original form.

--
Regards,

Leonid Ganeline [BizTalk MVP]
http://geekswithblogs.net/leonidganeline/


"Piotrek" <ptybulewicz@xxxxxxxxx> wrote in message
news:86b96ff9-2b25-4a4e-9929-b02a1ec9d7ef@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi.

I am using BTS 2006 R2 and MS SQL Server 2000. In my db I have such
stored procedure:
create procedure myTest
(
@inputValue numeric(18,0) = 0
)
as
begin
select top 1 'aaa' as 'AAA', 'b' as 'BBB'
from someTable
FOR XML AUTO, ELEMENTS , xmldata
end

where someTable is the name of some table existing in my DB.

When I use SQL Adapter in BTS and add adapter metadata based on this
procedure, then my response message contains single Success element of
xs:AnyType. However when I run this proc in Query Analyzer, then the
returned data is correct.

Why is BTS unable to generate proper response schema?

Thanks in advance,
Piotrek


.



Relevant Pages

  • Re: Huge problem with generating response schema using SQL Adapter
    ... When run in Query Analyzer ... But when I generate schema in BTS, ... generate proper response schema? ...
    (microsoft.public.biztalk.general)
  • Re: Interchange pipeline failure
    ... the Schema and txtfile you sent to me work fine on my computer. ... It appears not to be able to process the trailer, ... One other thing I don't understand is why BTS gives an error at the end ... The document schema has 1 record but no tag identifier, ...
    (microsoft.public.biztalk.general)
  • Urgent: Facing Problems with BTS 2002 Editor
    ... Facing Problems with BTS 2002 Editor ... Self-Generated Native instance for the schema. ...
    (microsoft.public.biztalk.general)
  • can biztalk 2002 or 2004 generate this kind of XML
    ... In BTS 2002 Schema is not generated to "W3Schema", ... created in .XDR format, this one is MS's own standard. ... specified will exactly created in BTS ... >we have ADT HL7 across biztalk to clinical apps. ...
    (microsoft.public.biztalk.general)
  • Re: BIZTALK 2K2 caching OLD schema...hELP??
    ... You have a pair of schemas and a map between them ... You update one schema. ... You want BTS to use that new schema to accept ... That's life with Biztalk. ...
    (microsoft.public.biztalk.server)