08-27-04 11:07 PM
Jeff, you will need to map from your inbound XML to the SP schema, as
the SQL adapter expects the input in its format, not yours. So, after
your receive shape, make a transform and just do a 1:1 mapping (or
whatever) to the SQL Request schema. That should then be sent to the
SP.
If you set the SQL port up as a request-respose, it will respond with
_its_ Response schema as the return.
If you have dramas sending the SP's schema to the port, remeber that
the Message that you send should be an instance of the type
'procedureRequest' which is under 'Multi-part Message Types' rather
than the one under 'Schemas'
Dan
Jeff wrote:
> I am new to BizTalk 2004.
>
> I am trying to create what I think should be a simple
> orchestration. I want to drop an xml file into a
> directory and have the orchestration pickup the file then
> directly pass the xml doc to my stored procedure for
> inserting into the DB.
>
> I have looked at the SQL Adapter sample in the SDK but I
> can't find any supporting documentation to go along with
> it.
>
> I have found how to create a schema using the wizard to
> specify my stored proc and specify the message variable to
> be passed, but in the example they also have a map which
> I'm thinking I won't need since I do not need to transform
> the XML.
>
> Eventually I will need to do some db lookup and that will
> insert the returned values into the XML but for now I'm
> trying to take baby steps to learn BizTalk.
>
> My ochestration right now is simple (maybe too simple)
> with a logical receive port bound to a physical recieve
> port configured to a local directory. The logical receive
> port is connected to a recieve object and below that is a
> send object which is connected to a logical send port
> bound to a physical send port configured withe sql adapter
> to connect to my DB. (At least thats what I'm attempting
> to do)
>
> Any suggestions of samples for a simpleton ;-) would be
> much appreciated.
>
> Thanks
>
> -jeff
[ Post a follow-up to this message ]
|