You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by zh...@ca.ibm.com on 2001/02/21 00:26:01 UTC

Pluggable Provider

Is RPCJavaProvider the default provider for RPC services on SOAP 2.1?

If yes, changing the type field in the provider element from "java" to
"org.apache.soap.providers.RPCJavaProvider" should work the same. right?
But I was getting com/ibm/bsf/BSFException. Any idea?
My intention is to write my own pluggable provider.

DeploymentDescriptor.xml
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
             id="urn:xmltoday-delayed-quotes">
  <isd:provider type="java"
                scope="Application"
                methods="getQuote">
    <isd:java class="samples.stockquote.StockQuoteService"/>
  </isd:provider>
</isd:service>


Thank you,
Allan Zhang
mailto:zhang@ca.ibm.com


Re: Pluggable Provider

Posted by Rich Johns <rj...@vignette.com>.
No, I believe it has to be 'java' if you intend to use a java class
to fulfill the service. The provider type is just a tag.

As for the exception, it could be the case that the code is testing for
'java' and anything else would be interpreted as script, (BSF).

zhang@ca.ibm.com wrote:

> Is RPCJavaProvider the default provider for RPC services on SOAP 2.1?
>
> If yes, changing the type field in the provider element from "java" to
> "org.apache.soap.providers.RPCJavaProvider" should work the same. right?
> But I was getting com/ibm/bsf/BSFException. Any idea?
> My intention is to write my own pluggable provider.
>
> DeploymentDescriptor.xml
> <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
>              id="urn:xmltoday-delayed-quotes">
>   <isd:provider type="java"
>                 scope="Application"
>                 methods="getQuote">
>     <isd:java class="samples.stockquote.StockQuoteService"/>
>   </isd:provider>
> </isd:service>
>
> Thank you,
> Allan Zhang
> mailto:zhang@ca.ibm.com