× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hey Griz;

When dealing with SOAP you must know that is it a way for Microsoft to expose COM-objects to the HTTP-protocol. It contains a header with routing info for the COM-object and a body with the payload. The SOAP body is simply a XML wrapper that wraps an other XML document. The SOAP envelope also has some information about which target server is etc. but you don't really need this information on the iSeries - you can go directly to the soap body.

You can build SOAP-based webservices with RPG-CGI and a XML parser and you have to parse the http-request your self. - but I prefer to use a product called IceBreak. Because it make all the XML parsing stuff for you and let you access the webservice XML request with an syntax called X-path: i.e. if you want the custno in an SOAP request it is on line of RPG in your program like:

eval CustNo = ReqXmlGetValue('/soap:Envelope/soap:Body/Myrequest/Custno');

IceBreak also helps you render the response XML by using a technique called ASP. It allows you to "escape" your XML with RPG code directly - just like JSP.

Useful links:

X-path

 http://www.w3schools.com/xpath/default.asp
 http://www.w3.org/TR/xpath

IceBreak:
http://ice-break.net/tutorials/Tutorials.asp?topic=ex15.htm
http://www.icebreak.info

Best regards

Niels

----- Original Message ----- From: "Grizzly Malchow" <grizzlym@xxxxxxxxxxxxxxxxxxxxx>
To: <web400@xxxxxxxxxxxx>
Sent: Tuesday, February 21, 2006 6:51 PM
Subject: [WEB400] Web Service


I'm looking into a way to use an RPG program as a web service (server
side). Is it as simple as creating a RPG-CGI program that receives xml
formatted data and writes xml formatted data back to the browser or is
there more to it?

My understanding is that SOAP will be used to post xml formatted data to
the web service and the web service will return xml formatted data. All
of the examples I have seen use SOAP and WSDL and none of the examples I
have seen call an RPG-CGI program.  I'm not opposed to using SOAP and
WDSL, but it is necessary in order for the RPG-CGI program to be
considered a web service?

Regards,

Griz

--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.