BizTalk Server General - HTTP Get

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > August 2004 > HTTP Get





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 HTTP Get
ian.thomas@online.nospam

2004-08-18, 7:51 am

Hi,

I was wondering whether anyone could explain to me how to use the HTTP
adapter to support Get requests.

Essentially I have set up the adapter as described in the documentation and
it seems to be OK. The issue I have, though, is that I can't see from the
documentation how to actually use it. I basically have an orchestration that
receives an XML file with 5 simple parameters. Hence I was expecting the
query to the HTTPAdapter dll to be of the form
BTSHTTPAdapter?parameter1=1¶meter2=2 etc. However, when I use IE to
submit a test request like this it just comes straight back (i.e. the result
I get back in IE is the query string) and nothing ever hits BT. What is the
structure that I should be sending to BT to get it to pick up the message and
does it actually convert the query string to an instance of the correct XML
message? Or alternatively do I actually need to send an XML message in some
way by including it after the ? in the url string? In either case what type
of data should my orcehstration actually be set up to receive in the receive
shape? In addition to this I then need to do some further HTTP receives
later on in the process and these need to be correlated. Given that the
query string doesn't seem to be xml how do I do the correlation?

Any help _really_ appreciated as I can't find any detail on this scenario in
the help documents.

Thanks

Ian
ian.thomas@online.nospam

2004-08-18, 7:51 am

A bit of an update:

I can now get the query string (i.e. parameter1=1¶meter2 etc.) to
actually get BT to do something. It still doesn't really work, though, as BT
is saying that there is no matching subscription for the message. I'm
guessing that this is because the query string is a string and BT is
expecting an xml document.

As a result I'd still apprciate an overview of how this should all work....

Ian

"ian.thomas@online.nospam" wrote:

> Hi,
>
> I was wondering whether anyone could explain to me how to use the HTTP
> adapter to support Get requests.
>
> Essentially I have set up the adapter as described in the documentation and
> it seems to be OK. The issue I have, though, is that I can't see from the
> documentation how to actually use it. I basically have an orchestration that
> receives an XML file with 5 simple parameters. Hence I was expecting the
> query to the HTTPAdapter dll to be of the form
> BTSHTTPAdapter?parameter1=1¶meter2=2 etc. However, when I use IE to
> submit a test request like this it just comes straight back (i.e. the result
> I get back in IE is the query string) and nothing ever hits BT. What is the
> structure that I should be sending to BT to get it to pick up the message and
> does it actually convert the query string to an instance of the correct XML
> message? Or alternatively do I actually need to send an XML message in some
> way by including it after the ? in the url string? In either case what type
> of data should my orcehstration actually be set up to receive in the receive
> shape? In addition to this I then need to do some further HTTP receives
> later on in the process and these need to be correlated. Given that the
> query string doesn't seem to be xml how do I do the correlation?
>
> Any help _really_ appreciated as I can't find any detail on this scenario in
> the help documents.
>
> Thanks
>
> Ian

larry franks

2004-08-18, 5:52 pm

Hi Ian, This error means that we are making it into the database, but
there's no subscription for it. Even if you pass in an XML document, if
there's no matching subscription then you'll get the same failure.

Try this:
1) set your receive port to use a passthroug pipeline.
2) create a send port that writes out to the local file system, also use
the passthrough pipeline.
3) on the filters and maps section of the send port set a filter where the
property is set to BTS.ReceivePortName and the value is set to the exact
name of the receive port.

Try sending the data through then. Since we have a hard subscription on
the receive port name the data should flow through.

If you are sending a query string of parameter1=1¶meter2=2, then the
document that is submitted to BizTalk (and should get written out the other
side with the above steps) is:

paremeter1=1¶meter2=2


Larry Franks

This posting is provided "AS IS" with no warranties,and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn
--------------------
| Thread-Topic: HTTP Get
| thread-index: AcSFJ5zbcfWLY5X7Sh+9F8zyNt2yWw==
| X-WBNR-Posting-Host: 194.63.116.72
| From: =?Utf-8?B?aWFuLnRob21hc0BvbmxpbmUubm9zcGFt?=
<ian.thomas@online.nospam>
| References: <2A22C5F9-398F-40D9-8819-F5294400071D@microsoft.com>
| Subject: RE: HTTP Get
| Date: Wed, 18 Aug 2004 06:31:05 -0700
| Lines: 42
| Message-ID: <66AF978C-B07E-4ACF-BC9B-B5EBCC833002@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.biztalk.general
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.general:18570
| X-Tomcat-NG: microsoft.public.biztalk.general
|
| A bit of an update:
|
| I can now get the query string (i.e. parameter1=1¶meter2 etc.) to
| actually get BT to do something. It still doesn't really work, though,
as BT
| is saying that there is no matching subscription for the message. I'm
| guessing that this is because the query string is a string and BT is
| expecting an xml document.
|
| As a result I'd still apprciate an overview of how this should all
work....
|
| Ian
|
| "ian.thomas@online.nospam" wrote:
|
| > Hi,
| >
| > I was wondering whether anyone could explain to me how to use the HTTP
| > adapter to support Get requests.
| >
| > Essentially I have set up the adapter as described in the documentation
and
| > it seems to be OK. The issue I have, though, is that I can't see from
the
| > documentation how to actually use it. I basically have an
orchestration that
| > receives an XML file with 5 simple parameters. Hence I was expecting
the
| > query to the HTTPAdapter dll to be of the form
| > BTSHTTPAdapter?parameter1=1¶meter2=2 etc. However, when I use IE to
| > submit a test request like this it just comes straight back (i.e. the
result
| > I get back in IE is the query string) and nothing ever hits BT. What
is the
| > structure that I should be sending to BT to get it to pick up the
message and
| > does it actually convert the query string to an instance of the correct
XML
| > message? Or alternatively do I actually need to send an XML message in
some
| > way by including it after the ? in the url string? In either case what
type
| > of data should my orcehstration actually be set up to receive in the
receive
| > shape? In addition to this I then need to do some further HTTP
receives
| > later on in the process and these need to be correlated. Given that
the
| > query string doesn't seem to be xml how do I do the correlation?
| >
| > Any help _really_ appreciated as I can't find any detail on this
scenario in
| > the help documents.
| >
| > Thanks
| >
| > Ian
|

ian.thomas@online.nospam

2004-08-19, 7:47 am

Larry,

Thanks for the response. I can confirm that the query string is written out
as you suggested it would be.

The question now though - I guess - is how do I actually get this message
into the orchestration, which is expecting an xml message rather than a
straight string? How do I set up a subscription for a string like this? I'm
assuming that BT is not going to automatically strip the url query string and
populate an instance of the xml message before writing to the message box
else I wouldn't get the subscription issue (and the string wouldn't come out
of the send port as per your post). I have looked at trying to create a map
from a flat file (which I guess you could say this string is) into the
required document type (by annotating the schema) but the problem is that
when I try to create the pipeline .net studio complains because one of the
other schemas in the assembly that contains the schema that I want to map has
an include statement in it and although everything compiles correctly for
some reason the map properties page complains about this unrelated schema
when I attempt to set the document type for the receive pipeline. Or am I
over complicating this way too much and is a bespoke pipeline and flat file
conversion not necessary?

Thanks

Ian

""larry franks"" wrote:

> Hi Ian, This error means that we are making it into the database, but
> there's no subscription for it. Even if you pass in an XML document, if
> there's no matching subscription then you'll get the same failure.
>
> Try this:
> 1) set your receive port to use a passthroug pipeline.
> 2) create a send port that writes out to the local file system, also use
> the passthrough pipeline.
> 3) on the filters and maps section of the send port set a filter where the
> property is set to BTS.ReceivePortName and the value is set to the exact
> name of the receive port.
>
> Try sending the data through then. Since we have a hard subscription on
> the receive port name the data should flow through.
>
> If you are sending a query string of parameter1=1¶meter2=2, then the
> document that is submitted to BizTalk (and should get written out the other
> side with the above steps) is:
>
> paremeter1=1¶meter2=2
>
>
> Larry Franks
>
> This posting is provided "AS IS" with no warranties,and confers no rights.
> Subscribe at
> http://support.microsoft.com/defaul...msdn/nospam.asp
> &SD=msdn
> --------------------
> | Thread-Topic: HTTP Get
> | thread-index: AcSFJ5zbcfWLY5X7Sh+9F8zyNt2yWw==
> | X-WBNR-Posting-Host: 194.63.116.72
> | From: =?Utf-8?B?aWFuLnRob21hc0BvbmxpbmUubm9zcGFt?=
> <ian.thomas@online.nospam>
> | References: <2A22C5F9-398F-40D9-8819-F5294400071D@microsoft.com>
> | Subject: RE: HTTP Get
> | Date: Wed, 18 Aug 2004 06:31:05 -0700
> | Lines: 42
> | Message-ID: <66AF978C-B07E-4ACF-BC9B-B5EBCC833002@microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 8bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.biztalk.general
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.general:18570
> | X-Tomcat-NG: microsoft.public.biztalk.general
> |
> | A bit of an update:
> |
> | I can now get the query string (i.e. parameter1=1¶meter2 etc.) to
> | actually get BT to do something. It still doesn't really work, though,
> as BT
> | is saying that there is no matching subscription for the message. I'm
> | guessing that this is because the query string is a string and BT is
> | expecting an xml document.
> |
> | As a result I'd still apprciate an overview of how this should all
> work....
> |
> | Ian
> |
> | "ian.thomas@online.nospam" wrote:
> |
> | > Hi,
> | >
> | > I was wondering whether anyone could explain to me how to use the HTTP
> | > adapter to support Get requests.
> | >
> | > Essentially I have set up the adapter as described in the documentation
> and
> | > it seems to be OK. The issue I have, though, is that I can't see from
> the
> | > documentation how to actually use it. I basically have an
> orchestration that
> | > receives an XML file with 5 simple parameters. Hence I was expecting
> the
> | > query to the HTTPAdapter dll to be of the form
> | > BTSHTTPAdapter?parameter1=1¶meter2=2 etc. However, when I use IE to
> | > submit a test request like this it just comes straight back (i.e. the
> result
> | > I get back in IE is the query string) and nothing ever hits BT. What
> is the
> | > structure that I should be sending to BT to get it to pick up the
> message and
> | > does it actually convert the query string to an instance of the correct
> XML
> | > message? Or alternatively do I actually need to send an XML message in
> some
> | > way by including it after the ? in the url string? In either case what
> type
> | > of data should my orcehstration actually be set up to receive in the
> receive
> | > shape? In addition to this I then need to do some further HTTP
> receives
> | > later on in the process and these need to be correlated. Given that
> the
> | > query string doesn't seem to be xml how do I do the correlation?
> | >
> | > Any help _really_ appreciated as I can't find any detail on this
> scenario in
> | > the help documents.
> | >
> | > Thanks
> | >
> | > Ian
> |
>
>

ian.thomas@online.nospam

2004-08-20, 7:47 am

Larry,

I can now confirm that using a custom pipeline and the flat file
disassembler I am able to deliver a document to my orchestration. The last
issue I have, though, is that because the string that is arriving in is the
format param1=1¶m2=2¶m3=3 etc I obviously only want the values 1, 2
and 3 to be copied into the xml message into the elements param1, param2 and
param3 respectively. I have set the delimiter in the schema to be &, however
and this means that the data that appears in the XMl is actually
<param1>param1=1</param1> etc. Is there a way of specifying the flat file
extensions to the schema such that I can lose the param1= part of the data
stripped out? Or do I need to have a map on the outward end of the receive
pipeline with some string manipulation functoids in it? I'm getting a bit
worried about the performance of all of this (my system is running really
slowly) and so would rather avoid adding another map if possible.

Thanks again

Ian

"ian.thomas@online.nospam" wrote:
[vbcol=seagreen]
> Larry,
>
> Thanks for the response. I can confirm that the query string is written out
> as you suggested it would be.
>
> The question now though - I guess - is how do I actually get this message
> into the orchestration, which is expecting an xml message rather than a
> straight string? How do I set up a subscription for a string like this? I'm
> assuming that BT is not going to automatically strip the url query string and
> populate an instance of the xml message before writing to the message box
> else I wouldn't get the subscription issue (and the string wouldn't come out
> of the send port as per your post). I have looked at trying to create a map
> from a flat file (which I guess you could say this string is) into the
> required document type (by annotating the schema) but the problem is that
> when I try to create the pipeline .net studio complains because one of the
> other schemas in the assembly that contains the schema that I want to map has
> an include statement in it and although everything compiles correctly for
> some reason the map properties page complains about this unrelated schema
> when I attempt to set the document type for the receive pipeline. Or am I
> over complicating this way too much and is a bespoke pipeline and flat file
> conversion not necessary?
>
> Thanks
>
> Ian
>
> ""larry franks"" wrote:
>
larry franks

2004-08-25, 5:54 pm

Sorry for the late reply, just got back in the office today. On getting
rid of the =1, I don't believe we can do this in a schema. I'll check but
I'm pretty sure it's a no go for that and the delimiter.

You could do it on a map to strip off the first X characters, or
programatically strip them in orchestration but either are going to effect
performance.

Is there another way to get the data besides doing a get? Something that
would post the data into BizTalk as XML?

Larry Franks

This posting is provided "AS IS" with no warranties,and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn
--------------------
| Thread-Topic: HTTP Get
| thread-index: AcSGoem0NZFDrbRYR++admB+UrJF5A==
| X-WBNR-Posting-Host: 81.155.254.37
| From: =?Utf-8?B?aWFuLnRob21hc0BvbmxpbmUubm9zcGFt?=
<ian.thomas@online.nospam>
| References: <2A22C5F9-398F-40D9-8819-F5294400071D@microsoft.com>
<66AF978C-B07E-4ACF-BC9B-B5EBCC833002@microsoft.com>
<h2$mA8UhEHA.404@cpmsftngxa06.phx.gbl>
<F694B6BC-BCA1-44E9-929A-9D036963417B@microsoft.com>
| Subject: RE: HTTP Get
| Date: Fri, 20 Aug 2004 03:39:04 -0700
| Lines: 165
| Message-ID: <22091452-BE87-42C1-9C1E-9DCFC96ABF0E@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.biztalk.general
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.general:18835
| X-Tomcat-NG: microsoft.public.biztalk.general
|
| Larry,
|
| I can now confirm that using a custom pipeline and the flat file
| disassembler I am able to deliver a document to my orchestration. The
last
| issue I have, though, is that because the string that is arriving in is
the
| format param1=1¶m2=2¶m3=3 etc I obviously only want the values 1,
2
| and 3 to be copied into the xml message into the elements param1, param2
and
| param3 respectively. I have set the delimiter in the schema to be &,
however
| and this means that the data that appears in the XMl is actually
| <param1>param1=1</param1> etc. Is there a way of specifying the flat
file
| extensions to the schema such that I can lose the param1= part of the
data
| stripped out? Or do I need to have a map on the outward end of the
receive
| pipeline with some string manipulation functoids in it? I'm getting a
bit
| worried about the performance of all of this (my system is running really
| slowly) and so would rather avoid adding another map if possible.
|
| Thanks again
|
| Ian
|
| "ian.thomas@online.nospam" wrote:
|
| > Larry,
| >
| > Thanks for the response. I can confirm that the query string is
written out
| > as you suggested it would be.
| >
| > The question now though - I guess - is how do I actually get this
message
| > into the orchestration, which is expecting an xml message rather than a
| > straight string? How do I set up a subscription for a string like
this? I'm
| > assuming that BT is not going to automatically strip the url query
string and
| > populate an instance of the xml message before writing to the message
box
| > else I wouldn't get the subscription issue (and the string wouldn't
come out
| > of the send port as per your post). I have looked at trying to create
a map
| > from a flat file (which I guess you could say this string is) into the
| > required document type (by annotating the schema) but the problem is
that
| > when I try to create the pipeline .net studio complains because one of
the
| > other schemas in the assembly that contains the schema that I want to
map has
| > an include statement in it and although everything compiles correctly
for
| > some reason the map properties page complains about this unrelated
schema
| > when I attempt to set the document type for the receive pipeline. Or
am I
| > over complicating this way too much and is a bespoke pipeline and flat
file
| > conversion not necessary?
| >
| > Thanks
| >
| > Ian
| >
| > ""larry franks"" wrote:
| >
| > > Hi Ian, This error means that we are making it into the database, but
| > > there's no subscription for it. Even if you pass in an XML document,
if
| > > there's no matching subscription then you'll get the same failure.
| > >
| > > Try this:
| > > 1) set your receive port to use a passthroug pipeline.
| > > 2) create a send port that writes out to the local file system, also
use
| > > the passthrough pipeline.
| > > 3) on the filters and maps section of the send port set a filter
where the
| > > property is set to BTS.ReceivePortName and the value is set to the
exact
| > > name of the receive port.
| > >
| > > Try sending the data through then. Since we have a hard subscription
on
| > > the receive port name the data should flow through.
| > >
| > > If you are sending a query string of parameter1=1¶meter2=2, then the
| > > document that is submitted to BizTalk (and should get written out the
other
| > > side with the above steps) is:
| > >
| > > paremeter1=1¶meter2=2
| > >
| > >
| > > Larry Franks
| > >
| > > This posting is provided "AS IS" with no warranties,and confers no
rights.
| > > Subscribe at
| > >
http://support.microsoft.com/defaul...msdn/nospam.asp
| > > &SD=msdn
| > > --------------------
| > > | Thread-Topic: HTTP Get
| > > | thread-index: AcSFJ5zbcfWLY5X7Sh+9F8zyNt2yWw==
| > > | X-WBNR-Posting-Host: 194.63.116.72
| > > | From: =?Utf-8?B?aWFuLnRob21hc0BvbmxpbmUubm9zcGFt?=
| > > <ian.thomas@online.nospam>
| > > | References: <2A22C5F9-398F-40D9-8819-F5294400071D@microsoft.com>
| > > | Subject: RE: HTTP Get
| > > | Date: Wed, 18 Aug 2004 06:31:05 -0700
| > > | Lines: 42
| > > | Message-ID: <66AF978C-B07E-4ACF-BC9B-B5EBCC833002@microsoft.com>
| > > | MIME-Version: 1.0
| > > | Content-Type: text/plain;
| > > | charset="Utf-8"
| > > | Content-Transfer-Encoding: 8bit
| > > | X-Newsreader: Microsoft CDO for Windows 2000
| > > | Content-Class: urn:content-classes:message
| > > | Importance: normal
| > > | Priority: normal
| > > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > > | Newsgroups: microsoft.public.biztalk.general
| > > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| > > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > > | Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.general:18570
| > > | X-Tomcat-NG: microsoft.public.biztalk.general
| > > |
| > > | A bit of an update:
| > > |
| > > | I can now get the query string (i.e. parameter1=1¶meter2 etc.) to
| > > | actually get BT to do something. It still doesn't really work,
though,
| > > as BT
| > > | is saying that there is no matching subscription for the message.
I'm
| > > | guessing that this is because the query string is a string and BT
is
| > > | expecting an xml document.
| > > |
| > > | As a result I'd still apprciate an overview of how this should all
| > > work....
| > > |
| > > | Ian
| > > |
| > > | "ian.thomas@online.nospam" wrote:
| > > |
| > > | > Hi,
| > > | >
| > > | > I was wondering whether anyone could explain to me how to use the
HTTP
| > > | > adapter to support Get requests.
| > > | >
| > > | > Essentially I have set up the adapter as described in the
documentation
| > > and
| > > | > it seems to be OK. The issue I have, though, is that I can't see
from
| > > the
| > > | > documentation how to actually use it. I basically have an
| > > orchestration that
| > > | > receives an XML file with 5 simple parameters. Hence I was
expecting
| > > the
| > > | > query to the HTTPAdapter dll to be of the form
| > > | > BTSHTTPAdapter?parameter1=1¶meter2=2 etc. However, when I use
IE to
| > > | > submit a test request like this it just comes straight back (i.e.
the
| > > result
| > > | > I get back in IE is the query string) and nothing ever hits BT.
What
| > > is the
| > > | > structure that I should be sending to BT to get it to pick up the
| > > message and
| > > | > does it actually convert the query string to an instance of the
correct
| > > XML
| > > | > message? Or alternatively do I actually need to send an XML
message in
| > > some
| > > | > way by including it after the ? in the url string? In either
case what
| > > type
| > > | > of data should my orcehstration actually be set up to receive in
the
| > > receive
| > > | > shape? In addition to this I then need to do some further HTTP
| > > receives
| > > | > later on in the process and these need to be correlated. Given
that
| > > the
| > > | > query string doesn't seem to be xml how do I do the correlation?
| > > | >
| > > | > Any help _really_ appreciated as I can't find any detail on this
| > > scenario in
| > > | > the help documents.
| > > | >
| > > | > Thanks
| > > | >
| > > | > Ian
| > > |
| > >
| > >
|

ian.thomas@online.nospam

2004-08-27, 6:06 pm

Larry,

Thanks again for your response. I was hoping originally to generate a web
part that used SOAP to query Biztalk but due to bugs in the Front Page web
part generation this hasn't proved to be possible. As a result I'm stuck
with a HTTP Get instead. In any case I'm also trying to get an Infopath
document returned from the GET that will automatically spawn IP for editing
and so I was unsure of how I would get this out of the SOAP envelope in order
to start IP anyway. At the moment my HTTP port returns XML with IP PIs in it
but this doesn't work anyway (although that's another post.....).

I have got the whole HTTP thing working using a map on the inbound port,
though, as you suggest and although this might not be ideal it will suffice
for the work that I'm doing at the moment.

Thanks again,

Ian

""larry franks"" wrote:

> Sorry for the late reply, just got back in the office today. On getting
> rid of the =1, I don't believe we can do this in a schema. I'll check but
> I'm pretty sure it's a no go for that and the delimiter.
>
> You could do it on a map to strip off the first X characters, or
> programatically strip them in orchestration but either are going to effect
> performance.
>
> Is there another way to get the data besides doing a get? Something that
> would post the data into BizTalk as XML?
>
> Larry Franks
>
> This posting is provided "AS IS" with no warranties,and confers no rights.
> Subscribe at
> http://support.microsoft.com/defaul...msdn/nospam.asp
> &SD=msdn
> --------------------
> | Thread-Topic: HTTP Get
> | thread-index: AcSGoem0NZFDrbRYR++admB+UrJF5A==
> | X-WBNR-Posting-Host: 81.155.254.37
> | From: =?Utf-8?B?aWFuLnRob21hc0BvbmxpbmUubm9zcGFt?=
> <ian.thomas@online.nospam>
> | References: <2A22C5F9-398F-40D9-8819-F5294400071D@microsoft.com>
> <66AF978C-B07E-4ACF-BC9B-B5EBCC833002@microsoft.com>
> <h2$mA8UhEHA.404@cpmsftngxa06.phx.gbl>
> <F694B6BC-BCA1-44E9-929A-9D036963417B@microsoft.com>
> | Subject: RE: HTTP Get
> | Date: Fri, 20 Aug 2004 03:39:04 -0700
> | Lines: 165
> | Message-ID: <22091452-BE87-42C1-9C1E-9DCFC96ABF0E@microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 8bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.biztalk.general
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> | Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.general:18835
> | X-Tomcat-NG: microsoft.public.biztalk.general
> |
> | Larry,
> |
> | I can now confirm that using a custom pipeline and the flat file
> | disassembler I am able to deliver a document to my orchestration. The
> last
> | issue I have, though, is that because the string that is arriving in is
> the
> | format param1=1¶m2=2¶m3=3 etc I obviously only want the values 1,
> 2
> | and 3 to be copied into the xml message into the elements param1, param2
> and
> | param3 respectively. I have set the delimiter in the schema to be &,
> however
> | and this means that the data that appears in the XMl is actually
> | <param1>param1=1</param1> etc. Is there a way of specifying the flat
> file
> | extensions to the schema such that I can lose the param1= part of the
> data
> | stripped out? Or do I need to have a map on the outward end of the
> receive
> | pipeline with some string manipulation functoids in it? I'm getting a
> bit
> | worried about the performance of all of this (my system is running really
> | slowly) and so would rather avoid adding another map if possible.
> |
> | Thanks again
> |
> | Ian
> |
> | "ian.thomas@online.nospam" wrote:
> |
> | > Larry,
> | >
> | > Thanks for the response. I can confirm that the query string is
> written out
> | > as you suggested it would be.
> | >
> | > The question now though - I guess - is how do I actually get this
> message
> | > into the orchestration, which is expecting an xml message rather than a
> | > straight string? How do I set up a subscription for a string like
> this? I'm
> | > assuming that BT is not going to automatically strip the url query
> string and
> | > populate an instance of the xml message before writing to the message
> box
> | > else I wouldn't get the subscription issue (and the string wouldn't
> come out
> | > of the send port as per your post). I have looked at trying to create
> a map
> | > from a flat file (which I guess you could say this string is) into the
> | > required document type (by annotating the schema) but the problem is
> that
> | > when I try to create the pipeline .net studio complains because one of
> the
> | > other schemas in the assembly that contains the schema that I want to
> map has
> | > an include statement in it and although everything compiles correctly
> for
> | > some reason the map properties page complains about this unrelated
> schema
> | > when I attempt to set the document type for the receive pipeline. Or
> am I
> | > over complicating this way too much and is a bespoke pipeline and flat
> file
> | > conversion not necessary?
> | >
> | > Thanks
> | >
> | > Ian
> | >
> | > ""larry franks"" wrote:
> | >
> | > > Hi Ian, This error means that we are making it into the database, but
> | > > there's no subscription for it. Even if you pass in an XML document,
> if
> | > > there's no matching subscription then you'll get the same failure.
> | > >
> | > > Try this:
> | > > 1) set your receive port to use a passthroug pipeline.
> | > > 2) create a send port that writes out to the local file system, also
> use
> | > > the passthrough pipeline.
> | > > 3) on the filters and maps section of the send port set a filter
> where the
> | > > property is set to BTS.ReceivePortName and the value is set to the
> exact
> | > > name of the receive port.
> | > >
> | > > Try sending the data through then. Since we have a hard subscription
> on
> | > > the receive port name the data should flow through.
> | > >
> | > > If you are sending a query string of parameter1=1¶meter2=2, then the
> | > > document that is submitted to BizTalk (and should get written out the
> other
> | > > side with the above steps) is:
> | > >
> | > > paremeter1=1¶meter2=2
> | > >
> | > >
> | > > Larry Franks
> | > >
> | > > This posting is provided "AS IS" with no warranties,and confers no
> rights.
> | > > Subscribe at
> | > >
> http://support.microsoft.com/defaul...msdn/nospam.asp
> | > > &SD=msdn
> | > > --------------------
> | > > | Thread-Topic: HTTP Get
> | > > | thread-index: AcSFJ5zbcfWLY5X7Sh+9F8zyNt2yWw==
> | > > | X-WBNR-Posting-Host: 194.63.116.72
> | > > | From: =?Utf-8?B?aWFuLnRob21hc0BvbmxpbmUubm9zcGFt?=
> | > > <ian.thomas@online.nospam>
> | > > | References: <2A22C5F9-398F-40D9-8819-F5294400071D@microsoft.com>
> | > > | Subject: RE: HTTP Get
> | > > | Date: Wed, 18 Aug 2004 06:31:05 -0700
> | > > | Lines: 42
> | > > | Message-ID: <66AF978C-B07E-4ACF-BC9B-B5EBCC833002@microsoft.com>
> | > > | MIME-Version: 1.0
> | > > | Content-Type: text/plain;
> | > > | charset="Utf-8"
> | > > | Content-Transfer-Encoding: 8bit
> | > > | X-Newsreader: Microsoft CDO for Windows 2000
> | > > | Content-Class: urn:content-classes:message
> | > > | Importance: normal
> | > > | Priority: normal
> | > > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | > > | Newsgroups: microsoft.public.biztalk.general
> | > > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> | > > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | > > | Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.general:18570
> | > > | X-Tomcat-NG: microsoft.public.biztalk.general
> | > > |
> | > > | A bit of an update:
> | > > |
> | > > | I can now get the query string (i.e. parameter1=1¶meter2 etc.) to
> | > > | actually get BT to do something. It still doesn't really work,
> though,
> | > > as BT
> | > > | is saying that there is no matching subscription for the message.
> I'm
> | > > | guessing that this is because the query string is a string and BT
> is
> | > > | expecting an xml document.
> | > > |
> | > > | As a result I'd still apprciate an overview of how this should all
> | > > work....
> | > > |
> | > > | Ian
> | > > |
> | > > | "ian.thomas@online.nospam" wrote:
> | > > |
> | > > | > Hi,
> | > > | >
> | > > | > I was wondering whether anyone could explain to me how to use the
> HTTP
> | > > | > adapter to support Get requests.
> | > > | >
> | > > | > Essentially I have set up the adapter as described in the
> documentation
> | > > and
> | > > | > it seems to be OK. The issue I have, though, is that I can't see
> from
> | > > the
> | > > | > documentation how to actually use it. I basically have an
> | > > orchestration that
> | > > | > receives an XML file with 5 simple parameters. Hence I was
> expecting
> | > > the
> | > > | > query to the HTTPAdapter dll to be of the form
> | > > | > BTSHTTPAdapter?parameter1=1¶meter2=2 etc. However, when I use
> IE to
> | > > | > submit a test request like this it just comes straight back (i.e.
> the
> | > > result
> | > > | > I get back in IE is the query string) and nothing ever hits BT.
> What
> | > > is the
> | > > | > structure that I should be sending to BT to get it to pick up the
> | > > message and
> | > > | > does it actually convert the query string to an instance of the
> correct
> | > > XML
> | > > | > message? Or alternatively do I actually need to send an XML
> message in
> | > > some
> | > > | > way by including it after the ? in the url string? In either
> case what
> | > > type
> | > > | > of data should my orcehstration actually be set up to receive in
> the
> | > > receive
> | > > | > shape? In addition to this I then need to do some further HTTP
> | > > receives
> | > > | > later on in the process and these need to be correlated. Given
> that
> | > > the
> | > > | > query string doesn't seem to be xml how do I do the correlation?
> | > > | >
> | > > | > Any help _really_ appreciated as I can't find any detail on this
> | > > scenario in
> | > > | > the help documents.
> | > > | >
> | > > | > Thanks
> | > > | >
> | > > | > Ian
> | > > |
> | > >
> | > >
> |
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com