ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Invoke Web Service in MB 6.0

Post new topic  Reply to topic
 Invoke Web Service in MB 6.0 « View previous topic :: View next topic » 
Author Message
harshvajra
PostPosted: Fri Jun 08, 2007 7:09 am    Post subject: Invoke Web Service in MB 6.0 Reply with quote

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
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Jun 08, 2007 7:22 am    Post subject: Reply with quote

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
View user's profile Send private message
harshvajra
PostPosted: Fri Jun 08, 2007 9:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
harshvajra
PostPosted: Fri Jun 08, 2007 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
harshvajra
PostPosted: Mon Jun 11, 2007 4:30 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
marcin.kasinski
PostPosted: Mon Jun 11, 2007 4:40 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Invoke Web Service in MB 6.0
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.