This is a trick to get the WSDL, I did not go in depth to understand why the WSDL can not be
produced from JasperServer app.

Giulio

William Ferguson wrote:
Wow, thanks for the prompt reply Giulio.

But you lost me.

Repository.aar is already deployed as part of the JasperServer WebApp.

Are you suggesting that I need to create another WebApp just containing
repository.aar (and its dependencies) and deploy that separately to the
JasperServer WebApp?

William


  
-----Original Message-----
From: Giulio Toffoli [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 12 July 2006 4:01 PM
To: William Ferguson; JasperreportsQuestions (E-mail)
Subject: Re: [jasperreports-questions] Unable to generate 
WSDL for this service


Putting repository.aar and all needed jars in an Axis2 
webapp, you can generate the WSDL.

Giulio

-----------------------------------------------------------

<wsdl:definitions xmlns:ns1="http://org.apache.axis2/xsd" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:tns="http://org.apache.axis2/" 
targetNamespace="http://org.apache.axis2/"><wsdl:types><xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:ns1="http://org.apache.axis2/xsd" 
targetNamespace="http://org.apache.axis2/xsd" 
elementFormDefault="unqualified" attributeFormDefault="unqualified">
<xs:element name="putRequest">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:anyType" name="element" /> 
</xs:sequence> </xs:complexType> </xs:element> <xs:element 
name="putResponse"> <xs:complexType> <xs:sequence> 
<xs:element type="xs:anyType" name="return" /> </xs:sequence> 
</xs:complexType> </xs:element> <xs:element 
name="getRequest"> <xs:complexType> <xs:sequence> <xs:element 
type="xs:anyType" name="element" /> </xs:sequence> 
</xs:complexType> </xs:element> <xs:element 
name="getResponse"> <xs:complexType> <xs:sequence> 
<xs:element type="xs:anyType" name="return" /> </xs:sequence> 
</xs:complexType> </xs:element> <xs:element 
name="listRequest"> <xs:complexType> <xs:sequence> 
<xs:element type="xs:anyType" name="element" /> 
</xs:sequence> </xs:complexType> </xs:element> <xs:element 
name="listResponse"> <xs:complexType> <xs:sequence> 
<xs:element type="xs:anyType" name="return" /> </xs:sequence> 
</xs:complexType> </xs:element> <xs:element 
name="deleteRequest"> <xs:complexType> <xs:sequence> 
<xs:element type="xs:anyType" name="element" /> 
</xs:sequence> </xs:complexType> </xs:element> <xs:element 
name="deleteResponse"> <xs:complexType> <xs:sequence> 
<xs:element type="xs:anyType" name="return" /> </xs:sequence> 
</xs:complexType> </xs:element> <xs:element 
name="loginRequest"> <xs:complexType> <xs:sequence> 
<xs:element type="xs:anyType" name="element" /> 
</xs:sequence> </xs:complexType> </xs:element> <xs:element 
name="loginResponse"> <xs:complexType> <xs:sequence> 
<xs:element type="xs:anyType" name="return" /> </xs:sequence> 
</xs:complexType> </xs:element> <xs:element 
name="checkForRequiredResourcesRequest">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:anyType" name="element" /> 
</xs:sequence> </xs:complexType> </xs:element> <xs:element 
name="checkForRequiredResourcesResponse">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:anyType" name="return" /> </xs:sequence> 
</xs:complexType> </xs:element> </xs:schema></wsdl:types><wsdl:message
name="loginRequestMessage"><wsdl:part name="part1" 
element="ns1:loginRequest" /></wsdl:message><wsdl:message 
name="listRequestMessage"><wsdl:part name="part1" 
element="ns1:listRequest" /></wsdl:message><wsdl:message 
name="deleteRequestMessage"><wsdl:part name="part1" 
element="ns1:deleteRequest" /></wsdl:message><wsdl:message 
name="deleteResponseMessage"><wsdl:part name="part1" 
element="ns1:deleteResponse" /></wsdl:message><wsdl:message 
name="putResponseMessage"><wsdl:part name="part1" 
element="ns1:putResponse" /></wsdl:message><wsdl:message 
name="getResponseMessage"><wsdl:part name="part1" 
element="ns1:getResponse" /></wsdl:message><wsdl:message 
name="listResponseMessage"><wsdl:part name="part1" 
element="ns1:listResponse" /></wsdl:message><wsdl:message 
name="checkForRequiredResourcesResponseMessage"><wsdl:part 
name="part1" 
element="ns1:checkForRequiredResourcesResponse" 
/></wsdl:message><wsdl:message
name="checkForRequiredResourcesRequestMessage"><wsdl:part 
name="part1" 
element="ns1:checkForRequiredResourcesRequest" 
/></wsdl:message><wsdl:message name="getRequestMessage"><wsdl:part
name="part1" element="ns1:getRequest" 
/></wsdl:message><wsdl:message 
name="loginResponseMessage"><wsdl:part name="part1" 
element="ns1:loginResponse" /></wsdl:message><wsdl:message 
name="putRequestMessage"><wsdl:part name="part1" 
element="ns1:putRequest" /></wsdl:message><wsdl:portType 
name="repositoryPort"><wsdl:operation name="list"><wsdl:input 
message="tns:listRequestMessage" /><wsdl:output 
message="tns:listResponseMessage" /></wsdl:operation><wsdl:operation
name="login"><wsdl:input message="tns:loginRequestMessage" 
/><wsdl:output message="tns:loginResponseMessage" 
/></wsdl:operation><wsdl:operation name="get"><wsdl:input 
message="tns:getRequestMessage" /><wsdl:output 
message="tns:getResponseMessage" /></wsdl:operation><wsdl:operation
name="put"><wsdl:input message="tns:putRequestMessage" 
/><wsdl:output message="tns:putResponseMessage" 
/></wsdl:operation><wsdl:operation
name="delete"><wsdl:input message="tns:deleteRequestMessage" 
/><wsdl:output message="tns:deleteResponseMessage" 
/></wsdl:operation><wsdl:operation
name="checkForRequiredResources"><wsdl:input
message="tns:checkForRequiredResourcesRequestMessage" 
/><wsdl:output message="tns:checkForRequiredResourcesResponseMessage" 
/></wsdl:operation></wsdl:portType><wsdl:binding
name="repositoryBinding" type="tns:repositoryPort"><soap:binding
transport="http://schemas.xmlsoap.org/soap/http" style="document" 
/><wsdl:operation name="list"><soap:operation soapAction="list" 
style="document" /><wsdl:input><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:input><wsdl:output><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:output></wsdl:operation><wsdl:operation
name="login"><soap:operation soapAction="login" style="document" 
/><wsdl:input><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:input><wsdl:output><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:output></wsdl:operation><wsdl:operation
name="get"><soap:operation soapAction="get" style="document" 
/><wsdl:input><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:input><wsdl:output><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:output></wsdl:operation><wsdl:operation
name="put"><soap:operation soapAction="put" style="document" 
/><wsdl:input><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:input><wsdl:output><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:output></wsdl:operation><wsdl:operation
name="delete"><soap:operation soapAction="delete" style="document" 
/><wsdl:input><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:input><wsdl:output><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:output></wsdl:operation><wsdl:operation
name="checkForRequiredResources"><soap:operation
soapAction="checkForRequiredResources" style="document" 
/><wsdl:input><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:input><wsdl:output><soap:body use="literal" 
namespace="http://www.org.apache.axis2" 
/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service
name="repository"><wsdl:port name="repositoryPortType0" 
binding="tns:repositoryBinding"><soap:address
location="http://127.0.0.1:8080/axis2/services/repository" 
/></wsdl:port></wsdl:service></wsdl:definitions>


-----------------------------------------------------------



William Ferguson wrote:
    
Hi,

I have just downloaded JasperServer-1.0.1 and installed it into 
Tomcat-5.5.17, along with MySql-5.0.22 The UI aspect of the WebApp 
appears to work OK, but I don't seem to be able to retrieve 
      
the WSDL 
    
for the WebService.

Hitting http://localhost:8080/jasperserver/services/repository?wsdl
returns the following XML packet
<error>
  <description>Unable to generate WSDL for this 
      
service</description>
    
  <reason>
    Either user has not dropped the wsdl into META-INF or 
      
operations 
    
use message receivers other than RPC.
  </reason>
</error>

The Axis lists seem to suggest that this is due to using the 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver as 
      
the message 
    
receiver and that org.apache.axis2.rpc.receivers.RPCMessageReceiver
needs to be used instead with Axis2.

Has anyone else been able to access the WSDL out of the box?

BTW I tried changing /meta-inf/services.xml to use the 
RPCMessageReceiver - no dice.
Also tried configured RPCMessageReceiver for theWebServices 
      
listed in 
    
repository.aar but again no dice.

Any help appreciated.

William



      
----------------------------------------------------------------------
    
--- Using Tomcat but need to do more? Need to support web services, 
security?
Get stuff done quickly with pre-integrated technology to 
      
make your job 
    
easier Download IBM WebSphere Application Server v.1.0.1 based on 
Apache Geronimo

      
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216
    
42 _______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

  
      


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

  
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to