× 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.



Hi Joe, 

I am sure you have seen this. But the method that I discovered by a process of 
"guess and golly" was to reach the server by HTTP and parse the resulting 
XML. 

Web service server : Win2K running Tomcat 4.1.18 / Apache Axis 1.1
*The application name is sanjose
*the method signature on java is 
        public RepairHeaderTO getRepairHeader(String orderNumber, String 
orderType)                                                     
throws BadOrderNumberException {
*The WSDL name for the service is Repair 

The equivalent for this case as an HTTP request is :

http://servername:8080/sanjose/service/Repair?method=getRepairHeader&in1=BTO&in0=123456

We used Scott Klement's HTTP API and IBM's XML Interface for RPG to retrieve 
and parse respectively. Not the way I would do it again but seems to be 
working pretty stable. I have not tried this with any other webservice server 
combination.

Regards
Pillai

On Saturday 20 March 2004 06:08 pm, Joe Pluta wrote:
> I'm cross posting this in a few places, so if you see multiple copies of
> this, please forgive me.  This is a rather unusual request in that in
> researching the net (including archives, Google, mail scans, you name
> it) I haven't found ANYTHING about the subject anywhere.  Since it
> crosses several domains, I thought I'd give it a shot in multiple
> places.
>
> My question is this: has anybody tried calling a web service directly
> from RPG?  I can't believe it's that difficult; it's simply a sockets
> communication.  But I can find no examples anywhere.  I suppose I can
> reverse engineer the Java client WDSC generated for me, but that seems
> like overkill (especially after I looked at the code <shudder>).
>
> It's not like it's crucial.  I can always call a Java program to do the
> work.  But we all know the performance downsides of invoking Java from
> RPG; it would be nice to be able to do it directly from RPG.
>
> What do you all think?
>
> Joe
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.