BizTalk Server Orchestration - Mapping Message to Outbound WebService Request

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > May 2005 > Mapping Message to Outbound WebService Request





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mapping Message to Outbound WebService Request
JP Burford

2005-05-06, 5:50 pm

I am havign some problems getting a message assigment to work propoerly. I
have an inbound message that looks like this:

<?xml version="1.0" ?>
- <ns0:OrderStatuses
xmlns:ns0="http://WebMdPs.It.SoftTrax.Integrator.Schemas.OrderStatus">
- <OrderStatus>
<EXT_ORD_ID>98b6046a-07a0-4310-a905-93b87ea5ba1d</EXT_ORD_ID>
<STATUS>SUCCESS</STATUS>
<STATUS_MESSAGE />
<SOFTTRAX_ORD_NO>635263</SOFTTRAX_ORD_NO>
</OrderStatus>
</ns0:OrderStatuses>

I have a Web Service Method Call looks like this:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<updateMessageStatus xmlns="http://softrax.com/webservices/">
<messageId>string</messageId>
<softTraxNumber>int</softTraxNumber>
<status>string</status>
<statusMessage>string</statusMessage>
</updateMessageStatus>
</soap:Body>
</soap:Envelope>

I use the message assignment shape to set the valuues from incomming to
outgoing as follows:

msgUpdateOrderStatus_Request.messageId =
msgOrderStatus.OrderStatus.EXT_ORD_ID;
msgUpdateOrderStatus_Request.softTraxNumber =
(System.Int32)msgOrderStatus.OrderStatus.SOFTTRAX_ORD_NO;
msgUpdateOrderStatus_Request.status = msgOrderStatus.OrderStatus.STATUS;
msgUpdateOrderStatus_Request.statusMessage =
msgOrderStatus.OrderStatus.STATUS_MESSAGE;

when I run this in the orchistraion I get this as my output:

<?xml version="1.0" encoding="utf-8" ?>
<string>98b6046a-07a0-4310-a905-93b87ea5ba1d</string>

Does any have any idea how I can rectify this?

Thanks



--
JPB
Michel Prévost

2005-05-12, 5:50 pm

Any reason why you don't use a map?

"JP Burford" <JPBurford@discussions.microsoft.com> wrote in message
news:B884A203-B0BF-4AAB-B31A-C84FBEE87E03@microsoft.com...
>I am havign some problems getting a message assigment to work propoerly. I
> have an inbound message that looks like this:
>
> <?xml version="1.0" ?>
> - <ns0:OrderStatuses
> xmlns:ns0="http://WebMdPs.It.SoftTrax.Integrator.Schemas.OrderStatus">
> - <OrderStatus>
> <EXT_ORD_ID>98b6046a-07a0-4310-a905-93b87ea5ba1d</EXT_ORD_ID>
> <STATUS>SUCCESS</STATUS>
> <STATUS_MESSAGE />
> <SOFTTRAX_ORD_NO>635263</SOFTTRAX_ORD_NO>
> </OrderStatus>
> </ns0:OrderStatuses>
>
> I have a Web Service Method Call looks like this:
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <updateMessageStatus xmlns="http://softrax.com/webservices/">
> <messageId>string</messageId>
> <softTraxNumber>int</softTraxNumber>
> <status>string</status>
> <statusMessage>string</statusMessage>
> </updateMessageStatus>
> </soap:Body>
> </soap:Envelope>
>
> I use the message assignment shape to set the valuues from incomming to
> outgoing as follows:
>
> msgUpdateOrderStatus_Request.messageId =
> msgOrderStatus.OrderStatus.EXT_ORD_ID;
> msgUpdateOrderStatus_Request.softTraxNumber =
> (System.Int32)msgOrderStatus.OrderStatus.SOFTTRAX_ORD_NO;
> msgUpdateOrderStatus_Request.status = msgOrderStatus.OrderStatus.STATUS;
> msgUpdateOrderStatus_Request.statusMessage =
> msgOrderStatus.OrderStatus.STATUS_MESSAGE;
>
> when I run this in the orchistraion I get this as my output:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <string>98b6046a-07a0-4310-a905-93b87ea5ba1d</string>
>
> Does any have any idea how I can rectify this?
>
> Thanks
>
>
>
> --
> JPB



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com