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 » Calling webservice from WBI

Post new topic  Reply to topic
 Calling webservice from WBI « View previous topic :: View next topic » 
Author Message
narendra68
PostPosted: Fri Jun 03, 2005 8:30 am    Post subject: Calling webservice from WBI Reply with quote

Apprentice

Joined: 17 Nov 2004
Posts: 30

Hi,

I need to call the web service described by the following WSDL,

<?xml version="1.0" encoding="UTF-8" ?>
<definitions name="XMLEscalationServiceBrokerService" targetNamespace="http://main.event.acq.cssd.countrywide.com.wsdl.WebContent/XMLEscalationServiceBrokerService/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:binding="http://main.event.acq.cssd.countrywide.com.wsdl.WebContent/XMLEscalationServiceBrokerBinding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://main.event.acq.cssd.countrywide.com.wsdl.WebContent/XMLEscalationServiceBrokerService/">
<import location="XMLEscalationServiceBrokerBinding.wsdl" namespace="http://main.event.acq.cssd.countrywide.com.wsdl.WebContent/XMLEscalationServiceBrokerBinding/" />
<service name="XMLEscalationServiceBrokerService">
<port binding="binding:XMLEscalationServiceBrokerBinding" name="XMLEscalationServiceBrokerPort">
<soap:address location="http://00.0.00.00:9080/ACQEventEscSystemWeb/servlet/rpcrouter" />
</port>
</service>
</definitions>


Would some one please help me where to start or if some one has sample message flow, please e-mail me ?

Thanks
Naren
_________________
Narendra
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jun 03, 2005 8:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://www.mqseries.net/phpBB2/viewtopic.php?t=22245
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
narendra68
PostPosted: Fri Jun 03, 2005 8:44 am    Post subject: Reply with quote

Apprentice

Joined: 17 Nov 2004
Posts: 30

jefflowrey
It will be very helpful, if you can provide me more info like
how to create soap message and how to decode and parse the reply..

Thanks for your quick reply
naren
_________________
Narendra
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jun 03, 2005 8:50 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

SOAP messages are just like any other message. They are built up out of fields.

So you create them just the same as you create any other message.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun Jun 05, 2005 1:45 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://www.mqseries.net/phpBB2/viewtopic.php?t=22482
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
narendra68
PostPosted: Mon Jun 06, 2005 12:18 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Nov 2004
Posts: 30

Hi
I created input node -> compute node -> HttpRequest node -> output node and error node

In the compute node , I have the follwoing ESQL code

SET Environment.myMQMD = InputRoot.MQMD;
-- Copy the Properties folder across
SET OutputRoot.Properties = InputRoot.Properties;
-- Create an HTTP header for the message
SET OutputRoot.HTTPRequestHeader.SOAPAction = '';

-- Declare the XML namespaces we will be using

DECLARE mySoapNS NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE myNS1 NAMESPACE 'http://10.5.18.13:9080/ACQEventEscSystemWeb/servlet/rpcrouter';
DECLARE myXSI NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE myXSD NAMESPACE 'http://www.w3.org/2001/XMLSchema';


-- Add an XML declaration to the message
SET OutputRoot.XMLNS.(XML.XmlDecl) = '';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML.Encoding) = 'UTF-8';

-- Create the SOAP Envelope
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:"SOAP-ENV" = 'http://schemas.xmlsoap.org/soap/envelope/' ;
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:xsi = 'http://www.w3.org/2001/XMLSchema-instance' ;
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:xsd = 'http://www.w3.org/2001/XMLSchema' ;

-- Set the operation name and parameters
SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS1:uploadEvents.(XML.NamespaceDecl)xmlns:ns1 = 'http://10.5.18.13:9080/ACQEventEscSystemWeb/servlet/rpcrouter';
SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS1:uploadEvents.(XML.NamespaceDecl)mySoapNS:encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/';

SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS1:uploadEvents.xmlEvents = '<Event> <EventCategory>1</EventCategory> <ServicerID>219</ServicerID> <SellerID>219</SellerID> <EventDate>06/03/2005</EventDate> <SubServicerID>1</SubServicerID> <TransmittalDate>06/03/2005</TransmittalDate> TransferDate>06/03/2005</TransferDate> <EventObjectId>1</EventObjectId> <EventObjectFile>3323434</EventObjectFile> <DealType>S</DealType> <EventDetail> <EventTypeID>1</EventTypeID> <EventResults>10</EventResults> <EventStatusID>1</EventStatusID> <EventStatusReasonID>1</EventStatusReasonID> <EventUpdateDate>06/03/2005</EventUpdateDate> <EventUpdateUser>waseem</EventUpdateUser> <EventComments>testing</EventComments> - <AccountNumberHistory> <EventSeqNo>1</EventSeqNo> <PrevOnrInfo>dd</PrevOnrInfo> <CHLInfo>sss</CHLInfo> <UpdateDate>06/03/2005</UpdateDate> <UpdateUser>waseem</UpdateUser> </AccountNumberHistory> </EventDetail> </Event>';
SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS1:uploadEvents.xmlEvents.(XML.Attribute)myXSI:type = 'xsd:string';




When I tried to test, I got the error 500. Would some please confirm if the ESQL code is correct ?

I want to call the method "uploadEvents" by passing the value for the arguement "xmlEvents".

Thanks in advance!
_________________
Narendra
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Calling webservice from WBI
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.