my dog learned polymorphism*
The moose likes Web Services and the fly likes How to allow multiple methods in SOAPService Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to allow multiple methods in SOAPService" Watch "How to allow multiple methods in SOAPService" New topic
Author

How to allow multiple methods in SOAPService

P Chaudhari
Greenhorn

Joined: Mar 22, 2004
Posts: 22
Hi All,

These are the lines from my wsdd file. I want to allow, SOAP clients to access multiple methods from my webservice. But with this code it throws Exception,
"Operation not found with name Queue{0}" .

Can somebody tell me what is wrong with this code. Or how to allow SOAP clients to access more than one methods from my Service Class.
I use axis API.

<service name="IntelligridService" provider="java:MSG" style="message" use="literal">
<!--<parameter name="allowedMethods" value="getProjectList"/>-->
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="com.conject.ng.axis.IntelligridService"/>
</service>

Thanks and Regds,
-Prasad
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41127
    
  45
Not even one operation is declared in the file, much less multiple. The <allowMethods> element just specifies which of the declared operations are allowed to be accessed. But you still need to specify which methods there are to begin with using <operation> elements.


Ping & DNS - my free Android networking tools app
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Originally posted by Ulf Dittmer:
Not even one operation is declared in the file, much less multiple. The <allowMethods> element just specifies which of the declared operations are allowed to be accessed. But you still need to specify which methods there are to begin with using <operation> elements.



Sorry I didn't understand. He has already selected "*".


Groovy
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41127
    
  45
You're right; I see where I read a bit too fast.

Then the question becomes: Is there a method named Queue, and what does the {0} behind it mean?
naveen
Greenhorn

Joined: Sep 09, 2005
Posts: 6
here is an example, hope it will be helpful


<service name="Acela" provider="java:RPC">
<wsdlFile>Acela.wsdl</wsdlFile>
<parameter name="sendMultiRefs" value="false"/>
<parameter name="sendXsiTypes" value="false"/>
<requestFlow>
<handler type="java rg.apache.axis.handlers.SimpleAuthenticationHandler"/>
<handler type="java rg.apache.axis.handlers.SimpleAuthorizationHandler"/>
</requestFlow>
<parameter name="allowedRoles" value="acrole"/>
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="wcom.gend.iasa.ipcom.webservice.acela.Acela"/>
<beanMapping languageSpecificType="java:wcom.gend.iasa.ipcom.webservice.acela.base.meta.AddOrChangeRequest" qname="ns272:AddOrChangeRequest" xmlns:ns272="urn:AddOrChangeRequestService"/>
<beanMapping languageSpecificType="java:wcom.gend.iasa.ipcom.webservice.acela.base.meta.RemoveOrQueryRequest" qname="ns273:RemoveOrQueryRequest" xmlns:ns273="urn:RemoveOrQueryRequestService"/>
<beanMapping languageSpecificType="java:wcom.gend.iasa.ipcom.webservice.acela.base.meta.Request" qname="ns274:Request" xmlns:ns274="urn:RequestService"/>
<beanMapping languageSpecificType="java:wcom.gend.iasa.ipcom.webservice.acela.base.meta.Response" qname="ns275:Response" xmlns:ns275="urn:ResponseService"/>
<beanMapping languageSpecificType="java:wcom.gend.iasa.ipcom.webservice.acela.base.meta.ErrorParameter" qname="ns276:ErrorParameter" xmlns:ns276="urn:ErrorParameterService"/>
<beanMapping languageSpecificType="java:wcom.gend.iasa.ipcom.webservice.acela.base.meta.Error" qname="ns277:Error" xmlns:ns277="urn:ErrorService"/>
</service>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to allow multiple methods in SOAPService
 
Similar Threads
Apache axis
Error: valid signatures for message-style service methods
beanMapping, typeMapping in Axis 1 (1.4) in server-config.wsdd generates complexType in wsdl
Please Help to write client for Webservice
Consuming 3rd Party web services