[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'Bad Soap Action....cannot figure out
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 [1]xmlns.oracle.com/syncokProcess
DSPLY
DSPLY
DSPLY
HTTP/1.1 500 Internal Server Error
from the logs
<env:Envelope
xmlns:env="[2]http://schemas.xmlsoap.org/soap/envelope/"><env:Header/>
<env:Body><env:Fault
xmlns="[3]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="">[4]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. http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Cenv:Header/%3E%3Cenv:Body%3E%3Cenv:Fault
3. http://xmlns.oracle.com/syncok%22%3E%3Cfaultcode
4. http://xmlns.oracle.com/syncok/syncokProcess
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions name="syncok" targetNamespace="http://xmlns.oracle.com/syncok" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/syncok" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:client="http://xmlns.oracle.com/syncok">
- <types>
- <schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/syncok" schemaLocation="syncok.xsd" />
</schema>
</types>
- <message name="syncokRequestMessage">
<part name="payload" element="tns:syncokProcessRequest" />
</message>
- <message name="syncokResponseMessage">
<part name="payload" element="tns:syncokProcessResponse" />
</message>
- <portType name="syncok">
- <operation name="process">
<input message="tns:syncokRequestMessage" />
<output message="tns:syncokResponseMessage" />
</operation>
</portType>
- <binding name="syncokBinding" type="tns:syncok">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="process">
<soap:operation style="document" soapAction="process" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
- <service name="syncok">
- <port name="syncokPort" binding="tns:syncokBinding">
<soap:address location="http://xyzorcl23.simba.co.uk:7781/orabpel/default/syncok/1.0" />
</port>
</service>
- <plnk:partnerLinkType name="syncok">
- <plnk:role name="syncokProvider">
<plnk:portType name="tns:syncok" />
</plnk:role>
</plnk:partnerLinkType>
</definitions>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------