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

RE: RPG WEB SERVICES - Problem solved



Hi Mark:

I found the problem of my program. The SOAP variable definition was
wrong, looks like has some spaces missing. I just defined again using
the SOAPUI and creating there one line and then cut it in 60 characters
to paste in the RPG.
Because I changed the action to be longer, now the program works like a
charm.
Thank you very much the help I received from the group and specially to
Scott. 

Regards,

Julio 

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Humpage,
Mark
Sent: Wednesday, October 07, 2009 4:04 PM
To: HTTPAPI and FTPAPI Projects
Subject: RE: RPG WEB SERVICES

Hi Julio,

This may or may not be of any use, but the message(Failed to route
event...)you mention seems to be coming from something called "Mule"
(http://www.mulesoft.org) - which is some sort of Java messaging layer
(or enterprise bus as they like to call it) - the only possible cause
I've seen that may apply to you was url encoding - not sure how but its
something to follow up.

Cheers

Mark Humpage
Software Developer
ISeries, Java, .Net, SharePoint
 

FUJITSU NEW ZEALAND
PO Box 2640, Christchurch Mail Centre, Christchurch 8140
T +64 3 963 7955 M +64 21 284 5167 F +64 3 963 7941 
mark.humpage@xxxxxxxxxxxxxx
nz.fujitsu.com

P Please consider the environment before printing this email

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Julio
Cabrera
Sent: Thursday, 8 October 2009 7:25 a.m.
To: HTTPAPI and FTPAPI Projects
Subject: RE: RPG WEB SERVICES

Scott:

Thanks for your help and sorry about the images I copy to the previous
email. 
I did the changes to my program using EXAMPLE20 for the SOAPACTION
extended size and now if you see the error log (see attachments) you'll
find that is not chopped anymore:
SOAPAction:
http://services.intervalintl.com/schema/contactmanager/contactManager/Ge
tTelephonesRequest
Which is the same as the one that appears in SOAPUI when you press the
WS-A button.
I just did debug the RPG program and found that instead the XML I am
getting the following:
Failed to route event via endpoint: null. Message payload is      
of type: DepthXMLStreamReader 
I am sending also the RPG source to see if you can help me, because I
stll having the same problem.

Regards,

Julio   

 
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Wednesday, October 07, 2009 1:02 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: RPG WEB SERVICES

Hi Julio,

In the future, please don't post images like this.  Your e-mail was 
HUUUGE, and it's being sent out to hundreds of people on this mailing 
list, and using a ton of bandwidth.  Furthermore, it takes a few minutes

for me to open your e-mail becuse it's so large.

Instead of including images of screen shots for every page of your 
program, please just copy/paste the TEXT, not an image.  Or better yet, 
load the whole program into WDSC/RDi, copy/paste the entire code into 
Notepad and save it to your PC, then attach the file to your e-mail.

(Or accomplish the same thing via FTP or any of a whole slew of similar 
ways...)

Okay -- nuff said about that.


You appear to be having trouble with the SoapAction: being truncated... 
  if you look at your debug file, you have SoapAction headers that look 
like this (There are several, but I'm only going to post one example):

SOAPAction:
"http://172.25.32.53:8080/EnterpriseBusWeb/services/ies/contactM

As you can see, it appears to be chopped off in the middle.  This is 
likely because the SoapAction parameter in HTTPAPI is only 64 bytes. If 
you look at EXAMPLE20 it demonstrates how to work around this problem. 
(However, the next version of HTTPAPI will attempt to eliminate the 
problem completely.)

Later in your debug file, you have the SoapAction set to "" (an empty 
string.)  I've seen web services where this is correct, but in most of 
them it's not.  I suggest looking at the SoapAction that SoapUI is using

to determine what the correct SoapACtion should be.  Then (again) look 
at EXAMPLE20 for a workaround if it's more than 64 chars long.

Good luck


Julio Cabrera wrote:
>    I am trying to receive XML from a Web Service in my Company. This
Web
>    Service is GETTELEPHONES. I send a contact id and receive a group
of
>    field with phone information.
> 
>    I tested it in SoapUI and it worked  ok:
> 
> 
>    [cid:image002.jpg@01CA4697.64BBDD80]
> 
> 
>    [cid:image003.jpg@01CA4697.64BBDD80]
> 
> 
>    I made and RPG program (based in Scott Klement)  to call the Web
>    Services:
> 
> 
>    [cid:image004.jpg@01CA4697.64BBDD80]
> 
>    [cid:image005.jpg@01CA4697.64BBDD80]
> 
>    [cid:image009.jpg@01CA4697.64BBDD80]
> 
>    [cid:image010.jpg@01CA4697.64BBDD80]
> 
>    [cid:image011.jpg@01CA4697.64BBDD80]
> 
>    [cid:image016.jpg@01CA4697.64BBDD80]
> 
> 
>    I am not getting the XML back.
> 
> 
>    If  I debug the program I find out this:
> 
>    [cid:image018.jpg@01CA4697.64BBDD80]
> 
>     
> 
>    What I am doing wrong?
> 
> 
>    I attached the log file
> 
> 
>    Any help will be appreciated.
> 
> 
>    JULIO C. CABRERA
> 
>    Sr. Programmer Analyst, Information Technology
> 
>    Interval International
> 
>    6262 Sunset Drive o Miami, Florida 33143
> 
>    305.666.1861, ext. 7287 o direct 305.925.7287
> 
>    cell 305.928.7925 o fax 305.668.3409
> 
>    [1]Julio.Cabrera@xxxxxxxxxxxxxxxx
> 
> 
>    IntervalWorld.com o ResortDeveloper.com
> 
>     
> 
>    Men are born ignorant, not stupid. They are made stupid by
education -
>    Bertrand Rusell
> 
> 
>
______________________________________________________________________
>    _______
>    Scanned by IBM Email Security Management Services powered by
>    MessageLabs. For more information please visit
http://www.ers.ibm.com
>
______________________________________________________________________
>    _______
> 
> References
> 
>    1. mailto:Julio.Cabrera@xxxxxxxxxxxxxxxx
> 
> 
> 
>
------------------------------------------------------------------------
> 
>
-----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
>
-----------------------------------------------------------------------

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

________________________________________________________________________
_____
Scanned by IBM Email Security Management Services powered by
MessageLabs.
________________________________________________________________________
_____

________________________________________________________________________
_____
Scanned by IBM Email Security Management Services powered by
MessageLabs. For more information please visit http://www.ers.ibm.com
________________________________________________________________________
_____
The information contained in this email is privileged and confidential
and
intended for the addressee only. If you are not the intended recipient,
you
are asked to respect that confidentiality and not disclose, copy or make
use
of its contents. If received in error you are asked to destroy this
email
and contact the sender immediately. Your assistance is appreciated.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

________________________________________________________________________
_____
Scanned by IBM Email Security Management Services powered by
MessageLabs.
________________________________________________________________________
_____

_____________________________________________________________________________
Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www.ers.ibm.com
_____________________________________________________________________________
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------