You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johannes Alming Daleng <da...@stud.ntnu.no> on 2004/04/09 16:24:13 UTC

AxisRPCReader setup in sitemap and WSDL serving

Hi

I'm currently using cocoon to build an electronics web experiment and 
simulation framework. The back-ends of the system is based on SOAP-RPC 
to utilize remote experiments and simulators, some written on the .NET 
plattform. I also have written Axis web-services that reside on the 
same server as cocoon which for convenience implements the same 
interface as the remote ones. To avoid a to complex setup I am using 
the AxisRPCReader to serve these.

However I am not able to find a way to specify the deployed services in 
the sitemap. I was able to get it up and running by specifying the 
deployed services in cocoon.xconf

 From cocoon.xconf:
<component class="org.apache.cocoon.components.axis.SoapServerImpl"
	logger="core.source.soapserver"
	role="org.apache.cocoon.components.axis.SoapServer">

    <managed-services>
      <descriptor src="somedeploymentdescriptor.wsdd"/>
    </managed-services>
  </component>

But it would be more convenient if this could be specified in a 
subsitemap, where the rest of the application i set up. Is it possible 
to pass a service descriptor to the reader in a sitemap?

Another thing I'm struggling with is WSDL serving. It is usual for 
webservices to provide a WSDL by appending ?wsdl to the endpoint. I'm 
not able to do this with the AxisRPCReader, is it possible?

I'v tried to work around this by adding this to my sitemap:
      <map:match pattern="webservices/*?wsdl">
         <map:generate src="webservices/{1}.wsdl"/>
	<map:serialize type="xml"/>
      <map:match pattern="webservices/*">
         <map:read type="soap-rpc" mime-type="text/xml"/>
      </map:match>
Hoping to serve statically generated wsdls generated with Ant at 
compile-time.
The reader gets the request anyway, as the ?wsdl is regarded as a GET 
parameter. Is there a workaround to this?

Hoping somebody can enlighten me on these issues.

Johannes


Johannes

Student		5. årskurs elektronikk		NTNU


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org