[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'Bad Soap Action....cannot figure out
Hi Scott, Mike,
Please accept my sincerest apologies. I was taken off the research
project for a shortwhile following an emergency callout.
And Thanks a lot for your comments. I took the wsdl sourced from
soapUI (and not from browser as you'd advised) as the guy who'd sent
me those WSDLs was on holiday and I didnt have access to the oracle
machine where they were (yep, all bad things happen at the same time).
Anyway, after doing that, I got the value of soapAction from how
soapUI had given it, as 'process' instead of
'[1]xmlns.oracle.com/syncokProcess' which I was using before. And
when I used this, it started working like the Fairy Godmother...I
think when I used the full name which was already defined in the
namespace definition, it was confusing the server. I'll remember
that. thanks to you guys for pointing me in the right direction.
Scott, I checked the PTF and it's already there. We are on 6.1 and we
have SI40983 installed. I am back on this research project, so I'm
planning to raise a ticket with IBM support. We have an alternate
machine that doubles up as UAT box and IWS and RDiSOA on localhost
works like a flute there...smooth. So I agree something's wrong with
the setup on this box and I need to raise a ticket now. I will share
the outcome of that with you guys too.
Have a good day!
Cheers,
Raghu
On Fri, May 13, 2011 at 9:49 AM, rags rags <[2]ragrage@xxxxxxxxx>
wrote:
Hi there,
I know this might not be the right place to ask this question, but it
is related.
I never used RPG to create a web service before. I was using HTTPAPI
and WSDL2RPG to consume a web service.
Now this web service, WSDL is testing fine on SOAPUI, it doesnt have
any extra parameters defined which is why I thought WSDL2RPG was
failing to create a stub of the WSDL I was given. I then used Scott's
tutorial and created an RPGLE program directly using Scott's HTTPAPI
and it started saying 'Bad Soap Action'. works just fine through
soapUI.
attached the wsdl script too. I displayed the String value from the
Incoming procedure.....
DSPLY
DSPLY null:syncok
DSPLY Cannot figure out operation name. Bad SOAPAction o
DSPLY [3]xmlns.oracle.com/syncokProcess
DSPLY
DSPLY
DSPLY
HTTP/1.1 500 Internal Server Error
from the logs
<env:Envelope
xmlns:env="[4]http://schemas.xmlsoap.org/soap/envelope/"><env:Header/>
<env:Body><env:Fault
xmlns="[5]http://xmlns.oracle.com/syncok"><faultcode
xmlns="">null:syncok</faultcode><faultstring xmlns="">Cannot figure
out operation name. Bad SOAPAction or
wsa:Action.</faultstring><faultactor
xmlns="">[6]http://xmlns.oracle.com/syncok/syncokProcess</faultactor><
/env:Fault></env:Body></env:Envelope>
Please can someone help me figure out what I'm doing wrong or is wrong
with the compatibility here.
Also on a related question...i tried to simulate what this guy was
doing by creating a web service using the IWS using Scott's tutorial
again. It gave me a great looking wsdl...and then when I test it
using either soapUI or the IWS test service function...
it first says
<faultcode>soapenv:Server</faultcode><faultstring>com/ibm/as400/access
/AS400ConnectionPool.setCCSID(I)V</faultstring>
and then when I run it again (didnt do this on purpose, just tested it
on soapUI next) it starts saying
<faultcode>soapenv:Server</faultcode>
<faultstring>iseries.wsbeans.tst_srv.TST_SRV (initialization
failure)</faultstring>
some 'No such method or'...exception at the bottom of the error log
pile...
On the RDi I created a web service which is even more straightforward
except it creates a lot more Java programs. But it tests just
fine.....problem I cant use it is that it doesnt let me change it from
a localhost to something similar to what the IWS does.
Please advise.
Apologies for taking a lot of your time...hope you can help though...
Thanks,
Warm regards,
Raghu
References
1. http://xmlns.oracle.com/syncokProcess
2. mailto:ragrage@xxxxxxxxx
3. http://xmlns.oracle.com/syncokProcess
4. http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Cenv:Header/%3E%3Cenv:Body%3E%3Cenv:Fault
5. http://xmlns.oracle.com/syncok%22%3E%3Cfaultcode
6. http://xmlns.oracle.com/syncok/syncokProcess
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------