Transforming a message for input to a web service request
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Transforming a message for input to a web service request




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Transforming a message for input to a web service request  
BenW


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-14-04 01:47 AM

The prototype objective is to receive a flat file or and XML document, disas
semble it and call a web service, passing in some of the data received.

I have managed to construct a port for the file arriving, created a web serv
ice, referenced it in the BizTalk project.  I see there have been two Multi 
Part Message Types created; one for the request and one the result.

I presumably want to transform the receive message disassembled from file in
put port to a send message to the web service.

How do I do this?  I have Transform shape and can set the input message but 
cannot seem to select a send message.  I did try creating a new message in t
he orchestration view and assigning it a type of the ...web service_request 
but this did not appear in
the Transform Shape configuration box.  I have had a look at the ConsumingWe
bService example in the SDK and this looks correct. But there must be a stag
e I'm missing.




--
BenW MCAD






[ Post a follow-up to this message ]



    Re: Transforming a message for input to a web service request  
Christof [MVP]


Report This Message To A Moderator Edit/Delete Message


 
07-14-04 01:47 AM

To split an incoming message you need a schema that defines an envelope.
There's a sample in the SDK that shows you how to do this.

Best regards,
Christof

--
Christof [Microsoft BizTalk Server MVP]

"BenW" <BenW@discussions.microsoft.com> wrote in message
news:34A93006-DABC-4881-8D92-B6A8A6E6E284@microsoft.com...
> The prototype objective is to receive a flat file or and XML document,
disassemble it and call a web service, passing in some of the data received.
>
> I have managed to construct a port for the file arriving, created a web
service, referenced it in the BizTalk project.  I see there have been two
Multi Part Message Types created; one for the request and one the result.
>
> I presumably want to transform the receive message disassembled from file
input port to a send message to the web service.
>
> How do I do this?  I have Transform shape and can set the input message
but cannot seem to select a send message.  I did try creating a new message
in the orchestration view and assigning it a type of the ...web
service_request but this did not appear in the Transform Shape configuration
box.  I have had a look at the ConsumingWebService example in the SDK and
this looks correct. But there must be a stage I'm missing.
>
>
>
>
> --
> BenW MCAD
>







[ Post a follow-up to this message ]



    Re: Transforming a message for input to a web service request  
BenW


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-14-04 01:47 AM

Christof thanks.  However this does answer my question.  As I say I have mam
aged to split the file.  It is Tranfroming the message to the input of the w
eb service that I am having difficulty with. See below.

--
BenW MCAD


"Christof [MVP]" wrote:

> To split an incoming message you need a schema that defines an envelope.
> There's a sample in the SDK that shows you how to do this.
>
> Best regards,
> Christof
>
> --
> Christof [Microsoft BizTalk Server MVP]
>
> "BenW" <BenW@discussions.microsoft.com> wrote in message
> news:34A93006-DABC-4881-8D92-B6A8A6E6E284@microsoft.com... 
> disassemble it and call a web service, passing in some of the data receive
d. 
> service, referenced it in the BizTalk project.  I see there have been two
> Multi Part Message Types created; one for the request and one the result. 
> input port to a send message to the web service. 
> but cannot seem to select a send message.  I did try creating a new messag
e
> in the orchestration view and assigning it a type of the ...web
> service_request but this did not appear in the Transform Shape configurati
on
> box.  I have had a look at the ConsumingWebService example in the SDK and
> this looks correct. But there must be a stage I'm missing. 
>
>
>





[ Post a follow-up to this message ]



mangi is offline     Re: Re: Transforming a message for input to a web service request  
mangi


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for mangi Click here to Send mangi a Private Message Find more posts by mangi Add mangi to your buddy list
 
07-14-04 12:13 PM

If your web service accepts an xml.xmldocument as input.
Use the message assign shape to convert the flatfile message to system.xml.x
mldocument and assign the outgoing document message part to the xml document
.

Hope that helps...




quote:
Originally posted by BenW Christof thanks. However this does answer my question. As I say I have mam aged to split the file. It is Tranfroming the message to the input of the w eb service that I am having difficulty with. See below. -- BenW MCAD "Christof [MVP]" wrote: > To split an incoming message you need a schema that defines an envelope. > There's a sample in the SDK that shows you how to do this. > > Best regards, > Christof > > -- > Christof [Microsoft BizTalk Server MVP] > > "BenW" <BenW@discussions.microsoft.com> wrote in message > news:34A93006-DABC-4881-8D92-B6A8A6E6E284@microsoft.com... > disassemble it and call a web service, passing in some of the data receive d. > service, referenced it in the BizTalk project. I see there have been two > Multi Part Message Types created; one for the request and one the result. > input port to a send message to the web service. > but cannot seem to select a send message. I did try creating a new messag e > in the orchestration view and assigning it a type of the ...web > service_request but this did not appear in the Transform Shape configurati on > box. I have had a look at the ConsumingWebService example in the SDK and > this looks correct. But there must be a stage I'm missing. > > >




[ Post a follow-up to this message ]



    Re: Transforming a message for input to a web service request  
BeerBoy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-14-04 10:50 PM

I too have got this problem and have spent all day trying to figure it out
!! You're right Ben in that the SDK samples look fine - how did they manage
to get the webservice messages in the destination !?!?!?!?



"BenW" <BenW@discussions.microsoft.com> wrote in message
news:4FF8B572-C160-4D9A-BDC6-C46241A818CC@microsoft.com...
> Christof thanks.  However this does answer my question.  As I say I have
mamaged to split the file.  It is Tranfroming the message to the input of
the web service that I am having difficulty with. See below.[vbcol=seagreen]
>
> --
> BenW MCAD
>
>
> "Christof [MVP]" wrote:
> 
received.[vbcol=seagreen] 
web[vbcol=seagreen] 
two[vbcol=seagreen] 
result.[vbcol=seagreen] 
file[vbcol=seagreen] 
message[vbcol=seagreen] 
message[vbcol=seagreen] 
configuration[vbcol=seagreen] 
and[vbcol=seagreen] 







[ Post a follow-up to this message ]



    Re: Transforming a message for input to a web service request  
Matt Milner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-15-04 01:47 AM

Make sure when trying to map that you are using schema/complex type based
web services, otherwise you can't map, you have to use a message assignment
shape and set properties on a message of the type of your request.

Matt


"BeerBoy" <jmacaulay@framfab.co.uk> wrote in message
news:uZ5quzbaEHA.2576@TK2MSFTNGP10.phx.gbl...
> I too have got this problem and have spent all day trying to figure it out
> !! You're right Ben in that the SDK samples look fine - how did they
manage
> to get the webservice messages in the destination !?!?!?!?
>
>
>
> "BenW" <BenW@discussions.microsoft.com> wrote in message
> news:4FF8B572-C160-4D9A-BDC6-C46241A818CC@microsoft.com... 
> mamaged to split the file.  It is Tranfroming the message to the input of
> the web service that I am having difficulty with. See below. 
envelope.[vbcol=seagreen] 
document,[vbcol=seagreen] 
> received. 
> web 
> two 
> result. 
> file 
> message 
> message 
> configuration 
> and 
>
>







[ Post a follow-up to this message ]



    Re: Transforming a message for input to a web service request  
BeerBoy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-15-04 12:47 PM

My web service is :

[WebMethod]

public XmlDocument UploadRecords(XmlDocument Message)

{

return Message;

}



I assume this is what you mean when you say the webservice must use complex
types ?







[ Post a follow-up to this message ]



    Re: Transforming a message for input to a web service request  
BeerBoy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-15-04 12:47 PM

Fixed it !!!!

OK - now I understand - you need to define a class in the webservice and
then biztalk will create a schema for this class and allow to to map to/from
it.


:-)



"BeerBoy" <jmacaulay@framfab.co.uk> wrote in message
news:%23VyQI9kaEHA.2260@TK2MSFTNGP10.phx.gbl...
> My web service is :
>
> [WebMethod]
>
> public XmlDocument UploadRecords(XmlDocument Message)
>
> {
>
> return Message;
>
> }
>
>
>
> I assume this is what you mean when you say the webservice must use
complex
> types ?
>
>







[ Post a follow-up to this message ]



    Re: Transforming a message for input to a web service request  
Vikas Nahata [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-04 10:52 PM

yes that is correct. Biztalk basically uses the same mechanism as xsd.exe
to convert the complex type to a schema.
if you run xsd.exe on XMLDocument no schemas will be generated for it. Same
is the case if the webservice parameter types are simple types (like
String, int)
--------------------
| >>From: "BeerBoy" <jmacaulay@framfab.co.uk>
| >>References:  <34A93006-DABC-4881-8D92-B6A8A6E6E284@microsoft.com>
<#GM6HzRaEHA.2408@tk2msftngp13.phx.gbl>
<4FF8B572-C160-4D9A-BDC6-C46241A818CC@microsoft.com>
<uZ5quzbaEHA.2576@TK2MSFTNGP10.phx.gbl>
<OooHu#gaEHA.3524@TK2MSFTNGP12.phx.gbl>
<#VyQI9kaEHA.2260@TK2MSFTNGP10.phx.gbl>
| >>Subject: Re: Transforming a message for input to a web service request
| >>Date: Thu, 15 Jul 2004 11:29:59 +0100
| >>Lines: 34
| >>X-Priority: 3
| >>X-MSMail-Priority: Normal
| >>X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
| >>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
| >>Message-ID: <euzevalaEHA.1248@TK2MSFTNGP11.phx.gbl>
| >>Newsgroups: microsoft.public.biztalk.orchestration
| >>NNTP-Posting-Host: 213-161-66-85.has.no.reverse 213.161.66.85
| >>Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
| >>Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.orchestration:7088
| >>X-Tomcat-NG: microsoft.public.biztalk.orchestration
| >>
| >>Fixed it !!!!
| >>
| >>OK - now I understand - you need to define a class in the webservice and
| >>then biztalk will create a schema for this class and allow to to map
to/from
| >>it.
| >>
| >>
| >>:-)
| >>
| >>
| >>
| >>"BeerBoy" <jmacaulay@framfab.co.uk> wrote in message
| >>news:%23VyQI9kaEHA.2260@TK2MSFTNGP10.phx.gbl...
| >>> My web service is :
| >>>
| >>> [WebMethod]
| >>>
| >>> public XmlDocument UploadRecords(XmlDocument Message)
| >>>
| >>> {
| >>>
| >>> return Message;
| >>>
| >>> }
| >>>
| >>>
| >>>
| >>> I assume this is what you mean when you say the webservice must use
| >>complex
| >>> types ?
| >>>
| >>>
| >>
| >>
| >>

This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team






[ Post a follow-up to this message ]



    Re: Transforming a message for input to a web service request  
Brett


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-04 12:50 PM

Is it possible to have the web service accept an xmldocument that conforms t
o
an existing (biztalk) schema?  I need to pass my web service an entire
message from biztalk as is and then receive another message back...using a
class to define the schema only allows me to send bits and parts of it.
Thanks,
Brett

"Vikas Nahata [MSFT]" wrote:

> yes that is correct. Biztalk basically uses the same mechanism as xsd.exe
> to convert the complex type to a schema.
> if you run xsd.exe on XMLDocument no schemas will be generated for it. Sam
e
> is the case if the webservice parameter types are simple types (like
> String, int)
> --------------------
> | >>From: "BeerBoy" <jmacaulay@framfab.co.uk>
> | >>References:  <34A93006-DABC-4881-8D92-B6A8A6E6E284@microsoft.com>
> <#GM6HzRaEHA.2408@tk2msftngp13.phx.gbl>
> <4FF8B572-C160-4D9A-BDC6-C46241A818CC@microsoft.com>
> <uZ5quzbaEHA.2576@TK2MSFTNGP10.phx.gbl>
> <OooHu#gaEHA.3524@TK2MSFTNGP12.phx.gbl>
> <#VyQI9kaEHA.2260@TK2MSFTNGP10.phx.gbl>
> | >>Subject: Re: Transforming a message for input to a web service request
> | >>Date: Thu, 15 Jul 2004 11:29:59 +0100
> | >>Lines: 34
> | >>X-Priority: 3
> | >>X-MSMail-Priority: Normal
> | >>X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
> | >>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
> | >>Message-ID: <euzevalaEHA.1248@TK2MSFTNGP11.phx.gbl>
> | >>Newsgroups: microsoft.public.biztalk.orchestration
> | >>NNTP-Posting-Host: 213-161-66-85.has.no.reverse 213.161.66.85
> | >>Path:
> cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP
11
> .phx.gbl
> | >>Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.orchestration:7088
> | >>X-Tomcat-NG: microsoft.public.biztalk.orchestration
> | >>
> | >>Fixed it !!!!
> | >>
> | >>OK - now I understand - you need to define a class in the webservice a
nd
> | >>then biztalk will create a schema for this class and allow to to map
> to/from
> | >>it.
> | >>
> | >>
> | >>:-)
> | >>
> | >>
> | >>
> | >>"BeerBoy" <jmacaulay@framfab.co.uk> wrote in message
> | >>news:%23VyQI9kaEHA.2260@TK2MSFTNGP10.phx.gbl...
> | >>> My web service is :
> | >>>
> | >>> [WebMethod]
> | >>>
> | >>> public XmlDocument UploadRecords(XmlDocument Message)
> | >>>
> | >>> {
> | >>>
> | >>> return Message;
> | >>>
> | >>> }
> | >>>
> | >>>
> | >>>
> | >>> I assume this is what you mean when you say the webservice must use
> | >>complex
> | >>> types ?
> | >>>
> | >>>
> | >>
> | >>
> | >>
>
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
> EBusiness Server Team
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:10 AM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register