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 ja...@brighton-hove.gov.uk on 2005/07/28 15:27:04 UTC

named parameters in wsdl

Hi. I'm using axis 1.2.1 & Tomcat 5.5 - My problem is that in the wsdl for
my WS the parameters in methods are named in0, in1 etc etc. The WS is
deployed with this wsdd:

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

    <service name="Gazetteer" provider="java:RPC">
        <parameter name="className"
value="uk.gov.brightonhove.ws.gazetteer.GazetteerService"/>
        <parameter name="allowedMethods" value="*"/>
        <beanMapping qname="gaz:Property" xmlns:gaz="urn:GazetteerService"
languageSpecificType="java:uk.gov.brightonhove.ws.gazetteer.Property"/>
        <beanMapping qname="gaz:Street" xmlns:gaz="urn:GazetteerService"
languageSpecificType="java:uk.gov.brightonhove.ws.gazetteer.Street"/>
        <beanMapping qname="gaz:BLPU" xmlns:gaz="urn:GazetteerService"
languageSpecificType="java:uk.gov.brightonhove.ws.gazetteer.BLPU"/>
    </service>

    <service name="PortableGazetteer" provider="java:RPC">
        <parameter name="className"
value="uk.gov.brightonhove.ws.gazetteer.GazetteerPortableService"/>
        <parameter name="allowedMethods" value="*"/>
    </service>

</deployment>

and the command

java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient deploy.wsdd

and a fragment from the wsdl looks like

<wsdl:message name="doPropertySearchRequest">
      <wsdl:part name="in0" type="xsd:string"/>
      <wsdl:part name="in1" type="xsd:int"/>
      <wsdl:part name="in2" type="xsd:int"/>
      <wsdl:part name="in3" type="xsd:boolean"/>
</wsdl:message>

how do I deploy the WS in such a way as to have the params named as in the
source code?I have searched this ml and found a guy with the same problem -
http://marc.theaimsgroup.com/?l=axis-user&m=108878710304676&w=2 - but the
answer related to using java2wsdl whereas I'm using a wsdd file and the
AdminClient for deployment - I'd like to keep it that way, or do I need to
use java2wsdl to get round this?

Thanks,
                                                                            
 James Burton                                                               
                                                                            
 Web Developer                                                              
                                                                            
 Database and Development                                                   
                                                                            
 Cultural Services                                                          
                                                                            
 Brighton & Hove City Council                                               
                                                                            
 tel: 01273 293594                                                          
                                                                            


Notice to recipient:
The information contained in this electronic mail message is intended only for the use of the individual to whom it is addressed and may contain information which is privileged and confidential, the disclosure of which is prohibited by law. If the reader of this message is not the intended recipient, please note that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error please notify the sender immediately. Thank you in anticipation of your co-operation.

You can visit our website at http://www.brighton-hove.gov.uk

Please consider the environment, only print out this email if absolutely necessary.