Send SOAP without adding a webreference?
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 > Send SOAP without adding a webreference?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Send SOAP without adding a webreference?  
Silly_King


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


 
12-21-04 10:51 PM

Is there a good way to send a SOAP message to a web service (from an
orchestration) without adding that web service as a reference to the BizTalk
project?

thank you!





[ Post a follow-up to this message ]



    RE: Send SOAP without adding a webreference?  
Ben Cuttriss


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


 
12-21-04 10:51 PM

One way is to call a .net assembly which handles the sending of the web
service (I presume it is web services related).  To send a SOAP message is
very problematic directly without adding the web service as a reference sinc
e
there is a lot of work that is performed behind the scenes for you.

HTH
Ben

"Silly_King" wrote:

> Is there a good way to send a SOAP message to a web service (from an
> orchestration) without adding that web service as a reference to the BizTa
lk
> project?
>
> thank you!





[ Post a follow-up to this message ]



    RE: Send SOAP without adding a webreference?  
Silly_King


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


 
12-21-04 10:51 PM

Right. I was thinking more of using the HTTP adapter and handling the SOAP
wrapper myself. All i'd realy need to do is 1) Add SOAPAction header to the
HTTP header collection 2) wrap the body of the XML message in
<soap:envelope/> and 3) POST to the WS URL supplied by the other party. How
could i accomplish that? via a custom pipeline?

"Ben Cuttriss" wrote:
[vbcol=seagreen]
> One way is to call a .net assembly which handles the sending of the web
> service (I presume it is web services related).  To send a SOAP message is
> very problematic directly without adding the web service as a reference si
nce
> there is a lot of work that is performed behind the scenes for you.
>
> HTH
> Ben
>
> "Silly_King" wrote:
> 





[ Post a follow-up to this message ]



    Re: Send SOAP without adding a webreference?  
Jon Flanders


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


 
12-21-04 10:51 PM

You can just create a normal solicit-response send port in your
orchestration and use the HTTP adapter to send a post message.  The only
thing you must do (assuming the webservice you are calling requires a soap
action header) is to send the SOAPAction header.  Adding the SOAPAction
header must be done in a custom send pipeline object.

You can construct a soap:Envelope message.  The soap schema is included in
the GlobalPropertySchemas assembly.


Jon Flanders
http://staff.develop.com/jfland/

"Silly_King" <SillyKing@discussions.microsoft.com> wrote in message
news:A08389C1-2038-4517-AD37-DBBCFB947439@microsoft.com...
> Right. I was thinking more of using the HTTP adapter and handling the SOAP
> wrapper myself. All i'd realy need to do is 1) Add SOAPAction header to
the
> HTTP header collection 2) wrap the body of the XML message in
> <soap:envelope/> and 3) POST to the WS URL supplied by the other party.
How[vbcol=seagreen]
> could i accomplish that? via a custom pipeline?
>
> "Ben Cuttriss" wrote:
> 
is[vbcol=seagreen] 
since[vbcol=seagreen] 
BizTalk[vbcol=seagreen] 







[ Post a follow-up to this message ]



    Re: Send SOAP without adding a webreference?  
Silly_King


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


 
12-21-04 10:51 PM

Do you have any examples on how a custom send pipeline can add a custom HTTP
header to an outgoing message?

thank you!


"Jon Flanders" wrote:

> You can just create a normal solicit-response send port in your
> orchestration and use the HTTP adapter to send a post message.  The only
> thing you must do (assuming the webservice you are calling requires a soap
> action header) is to send the SOAPAction header.  Adding the SOAPAction
> header must be done in a custom send pipeline object.
>
> You can construct a soap:Envelope message.  The soap schema is included in
> the GlobalPropertySchemas assembly.
>
>
> Jon Flanders
> http://staff.develop.com/jfland/
>
> "Silly_King" <SillyKing@discussions.microsoft.com> wrote in message
> news:A08389C1-2038-4517-AD37-DBBCFB947439@microsoft.com... 
> the 
> How 
> is 
> since 
> BizTalk 
>
>
>





[ Post a follow-up to this message ]



    Re: Send SOAP without adding a webreference?  
Jon Flanders


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


 
12-21-04 10:51 PM

This is what the custom object (probably want to place it at the
pre-assemble stage) Execute method would look like.

public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)

{

pInMsg.Context.Write("SOAPAction",
"http://schemas.microsoft.com/BizTalk/2003/system-properties","http://mysoap
action");

return pInMsg;

}



If you need a full sample ping me directly via email



Jon Flanders

http://staff.develop.com/jfland/

"Silly_King" <SillyKing@discussions.microsoft.com> wrote in message
news:4A4A51A3-5B0D-47BD-AEA1-83EE189458E9@microsoft.com...
> Do you have any examples on how a custom send pipeline can add a custom
HTTP[vbcol=seagreen]
> header to an outgoing message?
>
> thank you!
>
>
> "Jon Flanders" wrote:
> 
soap[vbcol=seagreen] 
in[vbcol=seagreen] 
SOAP[vbcol=seagreen] 
to[vbcol=seagreen] 
party.[vbcol=seagreen] 
web[vbcol=seagreen] 
age[vbcol=seagreen] 
reference[vbcol=seagreen] 
an[vbcol=seagreen] 
the[vbcol=seagreen] 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:11 PM.      Post New Thread    Post A Reply      
  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