• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to allow multiple methods in SOAPService

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 "*".
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
reply
    Bookmark Topic Watch Topic
  • New Topic