|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Invoke Web Service in MB 6.0 |
« View previous topic :: View next topic » |
Author |
Message
|
harshvajra |
Posted: Fri Jun 08, 2007 7:09 am Post subject: Invoke Web Service in MB 6.0 |
|
|
 Apprentice
Joined: 23 Apr 2007 Posts: 46 Location: India
|
Hello everybody,
This is my first application working with web service.
Please guide if i am going wrong.In the url http://www.webservicex.net/WCF/ServiceDetails.aspx?SID=19
there is a method GetQuote .
Can i invoke this method using msg flow in MB. _________________ Failure is not a defeat,it's just a delay, Walk TALL |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Jun 08, 2007 7:22 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can only invoke this method using a msg flow in MB if you can construct an appropriate message to invoke this method, and then have MB send this request to the service and receive the reply over the appropriate protocol, which appears in this case to be HTTP.
If you don't know how to do those things, then you can't invoke this method using a msg flow in WMB. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
harshvajra |
Posted: Fri Jun 08, 2007 9:16 am Post subject: |
|
|
 Apprentice
Joined: 23 Apr 2007 Posts: 46 Location: India
|
Hello jefflowrey,
I have imported the wsdl file.
Created a flow with MQInput,HTTPRequest, COmpute and MQOutput nodes.
Configured MQInput default property to XMLNS and HTTPRequest node url is set to wsdl service (soap:address location) and default to XMLNS,
in compute node made httpresponse headers null and set to mqmd.
I am not sure whether this will nvoke the service or not.
I am analysinh how it will invoke the url provided when it has got no information except wsdl.
Do i have do anything with the wsdl first. _________________ Failure is not a defeat,it's just a delay, Walk TALL |
|
Back to top |
|
 |
harshvajra |
Posted: Fri Jun 08, 2007 9:19 am Post subject: |
|
|
 Apprentice
Joined: 23 Apr 2007 Posts: 46 Location: India
|
And the input XMLNS is
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetQuote xmlns="http://www.webserviceX.NET/">
<symbol> string </symbol>
</GetQuote>
</soap:Body>
</soap:Envelope> _________________ Failure is not a defeat,it's just a delay, Walk TALL |
|
Back to top |
|
 |
harshvajra |
Posted: Mon Jun 11, 2007 4:30 am Post subject: |
|
|
 Apprentice
Joined: 23 Apr 2007 Posts: 46 Location: India
|
Hello jefflowrey,
Could u please help me in invoking a web service,
Should i do anything with the wsdl file. _________________ Failure is not a defeat,it's just a delay, Walk TALL |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Mon Jun 11, 2007 4:40 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
harshvajra wrote: |
Hello jefflowrey,
Could u please help me in invoking a web service,
Should i do anything with the wsdl file. |
If you are going to use MRM domain you can create message definition file from this WSDL file.
If you are going to use other domains (you mentioned XMLNS) you need this WSDL file to prepare correct WS request and get response manually in compute node because it describes input and output parameters.
Have you red article bellow?
http://www.ibm.com/developerworks/websphere/library/techarticles/0610_henley/0610_henley.html _________________ Marcin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|