iratik Posted March 22, 2010 Share Posted March 22, 2010 The docs for the SOAP interface for jasper server (page 10 of http://jasperforge.org/espdocs/docsbrowse.php?id=74&type=docs&group_id=112&fid=305) provides an example Request/Response request for the list command. I am having the hardest time getting this example to work. Might someone point out what I am doing wrong? Code:<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:wsdl="http://192.168.1.200:8080/jasperserver/services/repository" xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Body> <wsdl:list> <request operationName="list" locale="en"> <resourceDescriptor name="" wsType="folder" uriString="/"> <label>null</label> </resourceDescriptor> </request> </wsdl:list> </env:Body></env:Envelope>(Response)<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <soapenv:Code> <soapenv:Value>soapenv:Sender</soapenv:Value> <soapenv:Subcode xmlns:ns1="http://www.w3.org/2003/05/soap-rpc"> <soapenv:Value>ns1:BadArguments</soapenv:Value> </soapenv:Subcode> </soapenv:Code> <soapenv:Reason> <soapenv:Text xml:lang="en">string</soapenv:Text> </soapenv:Reason> <soapenv:Detail> <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">UUCTA-S</ns2:hostname> </soapenv:Detail> </soapenv:Fault> </soapenv:Body></soapenv:Envelope> Link to comment Share on other sites More sharing options...
swood Posted March 22, 2010 Share Posted March 22, 2010 In what way is it not working? Try adding isNew="false", like <resourceDescriptor name="" wsType="folder" uriString="/" isNew="false">Have you tried not using the namespaces? ShermanJaspersoft Link to comment Share on other sites More sharing options...
iratik Posted March 23, 2010 Author Share Posted March 23, 2010 I tried removing the "wsdl" namespace. I also tried adding isNew="false". Still getting the same Soapfault "Bad Arguments" response back. Both the request and response are included in the code. Code:Request<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Body> <list> <request operationName="list" locale="en"> <resourceDescriptor name="" wsType="folder" uriString="/" isNew="false"> <label>null</label> </resourceDescriptor> </request> </list> </env:Body></env:Envelope>Response<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <soapenv:Code> <soapenv:Value>soapenv:Sender</soapenv:Value> <soapenv:Subcode xmlns:ns1="http://www.w3.org/2003/05/soap-rpc"> <soapenv:Value>ns1:BadArguments</soapenv:Value> </soapenv:Subcode> </soapenv:Code> <soapenv:Reason> <soapenv:Text xml:lang="en">string</soapenv:Text> </soapenv:Reason> <soapenv:Detail> <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">UUCTA-S</ns2:hostname> </soapenv:Detail> </soapenv:Fault> </soapenv:Body></soapenv:Envelope> Link to comment Share on other sites More sharing options...
swood Posted March 29, 2010 Share Posted March 29, 2010 I think the <list> tags are a problem. Remove them. ShermanJaspersoft Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now