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 Scott Nichol <sc...@yahoo.com> on 2002/04/18 17:02:57 UTC
Re: SOAP DeploymentDescriptor's methods tag
You have discovered an unimplemented feature. The StatelessEJBProvider is
supposed to make sure the method in the call (select_vegreh) is one of the
listed methods in the deployment descriptor, but it does not. The
RPCJavaProvider implements this by calling RPCRouter#validCall. The
StatelessEJBProvider should do the same, but does not.
Scott Nichol
----- Original Message -----
From: "pop m" <po...@regens.hu>
To: <so...@xml.apache.org>
Sent: Thursday, April 18, 2002 11:36 AM
Subject: SOAP DeploymentDescriptor's methods tag
Hi everybody !
I am going to introduce you my problem:
I've a SOAP DeploymentDescriptor showed below:
<?xml version="1.0"?>
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:pop_service">
<isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
scope="Application"
methods="xyz">
<isd:option key="JNDIName" value="java:comp/env/select" />
<isd:option key="FullHomeInterfaceName" value="hu.regens.ejb.selectHome" />
<isd:option key="ContextProviderURL" value="ormi://IP
adress:port/regens_app" />
<isd:option key="FullContextFactoryName"
value="com.evermind.server.ApplicationInitialContextFactory" />
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
</isd:service>
My java soap client looks like:
try {
URL url = new URL ("http://IP adress:port/regens_app/servlet/rpcrouter;);
Call call = new Call();
call.setTargetObjectURI("urn:pop_service");
// !!!!!!!!!! select_vegreh is my method and in the descriptor is xyz
// so I'm invoking another method that was declared in the descriptor
// AND IT WORKS !
// !!!!!!!!!!!!!!!!!!!!!!!!!!!
call.setMethodName("select_vegreh");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
Vector params = new Vector();
params.addElement(new Parameter("select_par", java.lang.String.class,
p_select_utasitas, null));
call.setParams(params);
// Invoke the call.
Response resp = null;
try {
resp = call.invoke(/* router URL */ url, /* actionURI */ "" );
} catch( SOAPException e ) {
..................
Can anyone give me an explanation !
Pop Marius L.
Üdv. Pop Marius L.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com