Author |
Message
|
narendra68 |
Posted: Fri Jun 03, 2005 8:30 am Post subject: Calling webservice from WBI |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Jun 03, 2005 8:36 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
narendra68 |
Posted: Fri Jun 03, 2005 8:44 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Jun 03, 2005 8:50 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Sun Jun 05, 2005 1:45 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
narendra68 |
Posted: Mon Jun 06, 2005 12:18 pm Post subject: |
|
|
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 |
|
 |
|