axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hurst, Cyrus" <Cyrus_Hu...@tvratings.com>
Subject Wrox EJB Provider example correction .....
Date Wed, 19 Jun 2002 19:04:37 GMT

    I have been fumbling around with this and finally got it working.
  In reference to the EJB Provider example in Wrox Axis book , two more 
  parameters need to be added to the wsdd for it to  work 
  correctly.  They are
     1) <parameter name="remoteInterfaceName" value="theRemoteInterfaceName"
/>
     2) <parameter name="className"  value="theRemoteInterfaceName" /> 
 
-Cyrus  

-----Original Message-----
From: Hurst, Cyrus [mailto:Cyrus_Hurst@tvratings.com]
Sent: Wednesday, June 19, 2002 9:40 AM
To: 'axis-user@xml.apache.org'
Subject: RE: NoSuchMethodException- Follow up 


   All, 
    Does anyone know if any parameters in the  .wsdd for EJB provider
 have changed since Beta1 ?  I followed the example in the WROX Axis book
 for deploying stateless session beans but I am getting  NoSuchOperation
when I 
 invoke the EJB web-service.  My wsdd looks like :
 
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
            xmlns:xsi="http:/www.w3.org/2000/10/XMLSchema-instance">
    <service name="AssociateInfo" provider="java:EJB">
        <parameter name="beanJndiName" value="jndi/ejb/AssociateSessionEJB"
/>
        <parameter name="homeInterfaceName"
value="com.nielsenmedia.lrs.cpr.associate.AssociateSessionHome" />
        <parameter name="allowedMethods" value="getAssociateIDFromDMZID"/>
        <parameter name="jndiURL" value="t3://d2loc:9023" />
        <parameter name="jndiContextClass"
value="weblogic.jndi.WLInitialContextFactory" />
    </service>
</deployment>


Thanks,
-Cyrus 



-----Original Message-----
From: Hurst, Cyrus [mailto:Cyrus_Hurst@tvratings.com]
Sent: Wednesday, June 19, 2002 9:21 AM
To: 'axis-user@xml.apache.org'
Subject: RE: NoSuchMethodException- Resolved...



   Found the problem...I didn't realize the method signature for
message-based service had changed in Beta2 .  
   I have been following the Wrox Axis book examples which use Axis Beta1.
The correct
   method signature should be  :
                 public Element[] updateAssociateProfile(Vector
soapBodyElements) throws Exception 

   Thanks,
    -Cyrus 


 
-----Original Message-----
From: Hurst, Cyrus [mailto:Cyrus_Hurst@tvratings.com]
Sent: Tuesday, June 18, 2002 4:42 PM
To: 'axis-user@xml.apache.org'
Subject: NoSuchMethodException...


All,
   I keep running into this problem and haven't found the cause of it .. I
am testing out a message-based service .  
     In my client code I have this as my endPointURL :
                String endpointURL =
"http://localhost:8080/axis/services/CPRMessagingService";

     In my message service class this is the method signature :  
                public Element[] updateAssociateProfile(MessageContext
context, Vector soapBodyElements) throws Exception

     In my deploy.wsdd I have :
        <service name="CPRMessagingService" provider="java:MSG">
           <parameter name="className" value="TestCprMessagingService" />
           <parameter name="allowedMethods" value="updateAssociateProfile"
/>
        </service>

     In the generated wsdl :  
       <wsdl:portType name="TestCprMessagingService">
       <wsdl:operation name="updateAssociateProfile" parameterOrder="in0
in1">
       <wsdl:input message="intf:updateAssociateProfileRequest" /> 
       <wsdl:output message="intf:updateAssociateProfileResponse" /> 
       <wsdl:fault message="intf:Exception" name="Exception" /> 
       </wsdl:operation>
       </wsdl:portType>


  As you can see the method name(updateAssociateProfile) is consistent
throughout the code yet I'm getting NoSuchMethodException  on both client
and server console .  Any ideas?  

Thanks,
-Cyrus 

Mime
View raw message