| 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
|