You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Hurst, Cyrus" <Cy...@tvratings.com> on 2002/06/19 15:20:36 UTC

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