Call Web service with endpoint URL

tha_ndut

New Member
Hallo,
I am trying to call a web service with wsdl : https://rzbeta.rategain.com/IntegCert/RGBR/ARI/CGBridgeARI.wsdl
with
Endpoint URL: https://rzbetal4.rategain.com/RZL4PreProdINTGRServices/RGBridge/ARI/ari.svc

The xml that I have generated:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1">http://cgbridge.rategain.com/2011A/ARIService/Ping</a:Action>
<a:MessageID>urn:uuid:03bb3246-70a5-4997-9e2a-3e73bdb9f9ee</a:MessageID>
<a:ReplyTo>
<a:Address>
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">
https://rzbetal4.rategain.com/RZL4PreProdINTGRServices/RGBridge/ARI/ari.svc
</a:To>
<o:Security xmlns:eek:="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1">
<o:UsernameToken u:Id="uuid-1f935b27-461a-4f03-9cc6-6e3fd237aece-1">
<o:Username>CGBSERCOH</o:Username>
<o:password o:Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">br!d@pa7t</o:password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<OTA_PingRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="0">
<EchoData>CGBrige client is calling</EchoData>
</OTA_PingRQ>
</s:Body>
</s:Envelope>


The response I got was empty.

I have also tried using SoapUI with the similar XML, and I got the answer (not empty).

I would be glad if someone could explain what I did wrong.

Thank you
 

Stefan

Active Member
Please enclose your 'code' in code tags - it prevents smileys.
Where is the actual code used to call the web service?
 

cjdg08

New Member
Hi Sir Stefan,

I have have the same project with tha_ndut, when I'm trying to call the web method PingRQ, I'm getting the error.
My code behind

ARIPortClient client = new ARIPortClient();
client.Open();

OTA_PingRQTarget target = new OTA_PingRQTarget();

OTA_PingRQ PingRQ = new OTA_PingRQ();
PingRQ.Version = decimal.Parse("1.001");
PingRQ.TimeStamp = DateTime.Now;
PingRQ.TimeStampSpecified = true;
PingRQ.EchoData = EchoData;
PingRQ.Target = target;
PingRQ.TargetSpecified = true;

OTA_PingRS PingRS = client.OTA_PingRQ(PingRQ);

client.Close();

My Error
2011
 
Top