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.

Reply via email to