12-13-04 01:26 PM
Biff - if the argument defined in the web service is a string, as shown, you
should be able to set its value in a Message Assignment shape (within a
Construct shape). When you add the web reference to the project, you will
get a schema for the web service request, and you'll have to add a message
to the orchestration with this schema type (as per the standard
documentation for "Consume a web service". In your example, as the schema
consists of only primitive data types, you'll have to create the message in
a Assignment shape, not a Transform.
To get the string, you'll have to do the following.
1. Add a new variable to the orchestration of type System.Xml.XmlDocument.
2. Initialise this variable (in an Expression):
myVar = new System.Xml.XmlDocument;
myVar = myMsg;
(You can do this because all messages are XmlDocuments.)
3. You now have a copy of your message, cast as an XmlDocument, which means
that you can now use the XmlDocument.OuterXml property:
myWebRequestMsg.lineOfBusinessId = "1";
myWebRequestMsg.asOf = "now";
myWebRequestMsg.isStrict = true;
myWebRequestMsg.xmlData = myVar.OuterXml;
I'm saying all this without testing it - so it may not work exactly how I've
described, but I think it should work.
Hugo
http://hugo.rodger-brown.com
"Biff" <biff_gaut@hotmail.com> wrote in message
news:1102889303.243229.45270@z14g2000cwz.googlegroups.com...
> To add a little more detail, here's the signature of the web service I
> am calling-
>
> string result = validate( String lineOfBusinessId, String asOf, boolean
> isStrict, string xmlData )
>
> My goal is to send an existing message in the orchestration as xmlData
> and assign result to a new message with a defined schema when the
> service returns.
>
> Thanks,
> Biff Gaut
> Gaithersburg, MD
>
[ Post a follow-up to this message ]
|