[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Consume webservice from RPG in V4R5M0



Nuno,

Giving the wsdl link to an internal server doesn't help us help you. Please copy the WSDL into your message. Or better yet, soapUI or something similar and you can figure out the SOAP message to pass and the output format.

Read Scott's httpapi page again and install the version appropriate to your version of the operating system. It looks like you could use either the XML installer or the zip file version. (Unless you have bad load source drives...why are you still on V4R5? he asks rhetorically) (actually it sounds like you got past this problem...you have a version installed and tested?)

The code from the C# program gives us almost no infomation as well. The RSA_typeService appears to be custom written code as well. Most web service calls look more like the examples in HTTPAPI.  Usually a SOAP message, a URI to send it to and some kind of parsing on the backend. This code in C# doesn't contain any of that. Perhaps if you look at the ConvertToHash routine you will find the soap message, the URI, and how to parse the returned string.

Good luck. Post back more information when you get it.



________________________________________
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Nuno Carrico [NCarrico@xxxxxxxxxx]
Sent: Thursday, November 25, 2010 12:31 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Consume webservice from RPG in V4R5M0

Hi,

I need to consume a webservice from RPG program, and I've been looking at Scott's httpapi that I think requires V5R1M0.
Is it possible to do in V4R5M0? how?

Here is the webservice I need to consume:
http://libsrvdev:8089/RSA_WebService.svc?wsdl


my colleague who built the webservice calls it in C# like this:
                string exemplo = "18-12-2010;12-12-2010...";
                RSA_TypeService ws_RSA = new RSA_TypeService();
                string newHashValue = ws_RSA.ConvertToHash(exemplo);

wich of the examples in libhttp would I use?

Any help would be apreciated.

Nuno Carriço
Glintt



Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------