RE: How do you search the contants of a response message for a str
by =?Utf-8?B?U3R1IEI=?= <StuB@[EMAIL PROTECTED]
>
May 1, 2008 at 08:28 AM
So perhaps the next pertinant question is.....
Kevin - which version of BizTalk are you using?
"Yossi Dahan [MVP]" wrote:
> Definitely possible with 2006 or R2.
>
> --
> Yossi Dahan
> MVP BizTalk Server
> http://www.sabratech.co.uk/blogs/yossidahan
>
>
> "Stu B" wrote:
>
> > Hi,
> >
> > Can you confirm where in your orchestration you are doing this?
> >
> > Assuming that it is in an expression shape, I believe that you are
unable to
> > make use of the functions/methods of the string type within the
expression
> > shape, so MyString.IndexOf is not likely to work (at least this is the
case
> > with BT 2004).
> >
> > To make use of the string functions/methods I created a helper class
that
> > did some of the basic jobs for me.
> >
> > see
> >
http://www.eggheadcafe.com/forumarchives/biztalkorchestration/Jun2005/post23246451.asp
for another take on it.
> >
> > Cheers
> > Stu.
> >
> > "Kevin S" wrote:
> >
> > > Assume my response message has the identifier myMessage.
> > >
> > > I have created a variable (myXMLDoc) of type System.Xml.XmlDo***ent
> > > and assigned it as follows.
> > >
> > > myXMLDoc = myMessage
> > >
> > > I have created a variable (myStr) of type System.String and assigned
> > > it as follows.
> > >
> > > myStr = myXMLDoc
> > >
> > > I know want to use string manipulation
> > > 'XOGResponseState.IndexOf(srchString)' but am getting the message
> > > 'distinguished types cannot be referenced with the dot operator'.
> > >
> > > Distinguished types are new to me and I haven't had too much success
> > > looking for information on their purpose and use.
> > >
> > > Can anyonew explain what is happening here and if I am using the
best
> > > method to achieve my goal?
> > >
> > > Thanks.
> > >