Can't get SQL Response to work for special Stored Proc.
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 > Can't get SQL Response to work for special Stored Proc.




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

    Can't get SQL Response to work for special Stored Proc.  
Neal Walters


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


 
12-13-04 11:28 PM

I am trying to call a stored procedure that in turns calls an SQL Bulk Load.
Based on files created on the file system, I know it is getting called.

The stored procedure returns data as follows:
INSERT
INTO	@ReturnTable
SELECT	@Return AS ReturnValue
,		@ReturnMessage AS ReturnMessage

SELECT	*
FROM	@ReturnTable AS Results
FOR XML AUTO, ELEMENTS

I custom built by schema for the SQL rather than using the SQL Adapter.
Because of the error below, I have tried to simplify and simplify until the
error goes away - but that has not worked.

----------------------------------------------------------------------------
--------
Microsoft.XLANGs.Core.UnexpectedMessageTypeException: Received unexpected
message type '' does not match expected type
'http://Odimo.com/Amazon/SettlementBulkLoad#BulkLoadSQLResp'.

at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase.VerifyTransport(Envelope env,
Int32 operationId, Context ctx)

at Microsoft.XLANGs.Core.Subscription.Receive(Segment s, Context ctx,
Envelope& env, Boolean topOnly)

at Microsoft.XLANGs.Core.PortBase.GetMessageId(Subscription subscription,
Segment currentSegment, Context cxt, Envelope& env, CachedObject location)

at Odimo.Amazon.Settlement.orSettlement.segment1(StopConditions stopOn)

at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s,
StopConditions stopCond, Exception& exp)
Microsoft.XLANGs.Core.UnexpectedMessageTypeException
Scoped@
orSettlement.orSettlement
----------------------------------------------------------------------------
--------
My SQL schema has two root elements:
BulkLoadSQLReq and BulkLoadSQLResp
Under the BulkLoadSQLResp I have simplified to the <ANY> element, so that I
could try to avoid the error totally.

In my Send Port (Request/Response) I have set
root element name to: BulkLoadSQLResp
and target namespace to: http://Odimo.com/Amazon/SettlementBulkLoad
(which matches the namespace of the schema).


Thanks a lot,
Neal Walters
http://Biztalk-Training.com - Free Biztalk Demos






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:17 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