The "undeployment" no such operation error is in response to your request to undeploy using the axis-admin ant task. Look for your problem in the ant task.

As for your WSDL, if you switch to use="literal" you must redefine your arrays -- you can no longer use soap encoding arrays. For example,

change this:

            <complexType name="ArrayOf_tns1_Tax">
                <complexContent>
                    <restriction base="soapenc:Array">
                        <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:Tax[]" />
                    </restriction>
                </complexContent>
            </complexType>

to this:

            <complexType name="ArrayOf_tns1_Tax">
                <sequence>
                     <element name="tax" type="tns1:Tax"
                         minOccurs="0" maxOccurs="unbounded"/>
                    </restriction>
                </complexContent>
            </complexType>

Anne

On 6/28/06, Juan Alvarez <[EMAIL PROTECTED]> wrote:
Hello all. I have an error attempting to undeploy a service. I suppose this problem arise when I changed the 'use' property from 'encoded' to 'literal' in the use of java2wsdl.
This is the error I have with axis-admin ant task attempting to undeploy my service:

*************************
BUILD FAILED
E:\clases-java\research\WSResiberPruebas\build.xml:56: axis-admin failed with  {
http://schemas.xmlsoap.org/soap/envelope/}Server.generalException No such operation 'undeployment'
*************************


I don't have an operation called 'undeployment'.
Here my wsdl file generated with java2wsdl and next the error when attempting undeploy the service. Thanks in advance.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://impl.wsresiber.emision.iberia.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://impl.wsresiber.emision.iberia.com"
    xmlns:intf="http://impl.wsresiber.emision.iberia.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://ints.wsresiber.emision.iberia.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
        <schema targetNamespace="http://ints.wsresiber.emision.iberia.com" xmlns="http://www.w3.org/2001/XMLSchema">
            <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
            <complexType name="Ammount">
                <sequence>
                    <element name="amt" type="xsd:double" />
                    <element name="curr" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="Tax">
                <sequence>
                    <element name="amt" nillable="true" type="xsd:string" />
                    <element name="tipoTasa" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="OriginDest">
                <sequence>
                    <element name="date" nillable="true" type="xsd:string" />
                    <element name="name" nillable="true" type="xsd:string" />
                    <element name="term" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="Coupon">
                <sequence>
                    <element name="nr" type="xsd:int" />
                    <element name="org" nillable="true" type="tns1:OriginDest" />
                    <element name="dest" nillable="true" type="tns1:OriginDest" />
                    <element name="op" nillable="true" type="xsd:string" />
                    <element name="flt" nillable="true" type="xsd:string" />
                    <element name="cls" nillable="true" type="xsd:string" />
                    <element name="fb" nillable="true" type="xsd:string" />
                    <element name="nva" nillable="true" type="xsd:string" />
                    <element name="nvb" nillable="true" type="xsd:string" />
                    <element name="bg" nillable="true" type="xsd:string" />
                    <element name="flt_st" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="Tkt">
                <sequence>
                    <element name="tkt_nr" nillable="true" type="xsd:string" />
                    <element name="f_calc" nillable="true" type="xsd:string" />
                    <element name="coupons" nillable="true" type="impl:ArrayOf_tns1_Coupon" />
                </sequence>
            </complexType>
            <complexType name="Foid">
                <sequence>
                    <element name="foid" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="Info">
                <sequence>
                    <element name="offc" nillable="true" type="xsd:string" />
                    <element name="iata" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="TktInfo">
                <sequence>
                    <element name="loc_r" nillable="true" type="xsd:string" />
                    <element name="loc_a" nillable="true" type="xsd:string" />
                    <element name="e_r" nillable="true" type="xsd:string" />
                    <element name="name" nillable="true" type="xsd:string" />
                    <element name="num_pax" type="xsd:int" />
                    <element name="fp" nillable="true" type="xsd:string" />
                    <element name="b_fare" nillable="true" type="tns1:Ammount" />
                    <element name="eqv" nillable="true" type="xsd:double" />
                    <element name="br" nillable="true" type="xsd:double" />
                    <element name="taxes" nillable="true" type="impl:ArrayOf_tns1_Tax" />
                    <element name="total" nillable="true" type="tns1:Ammount" />
                    <element name="tkts" nillable="true" type="impl:ArrayOf_tns1_Tkt" />
                    <element name="foids" nillable="true" type="impl:ArrayOf_tns1_Foid" />
                    <element name="tkt_date" nillable="true" type="xsd:string" />
                    <element name="tkt_1a" nillable="true" type="tns1:Info" />
                    <element name="bkg_1a" nillable="true" type="tns1:Info" />
                    <element name="ch" nillable="true" type="xsd:int" />
                    <element name="sf" nillable="true" type="tns1:Ammount" />
                    <element name="gran_tot" nillable="true" type="tns1:Ammount" />
                </sequence>
            </complexType>
        </schema>
        <schema targetNamespace="http://impl.wsresiber.emision.iberia.com" xmlns="http://www.w3.org/2001/XMLSchema">
            <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
            <complexType name="ArrayOf_tns1_Tax">
                <complexContent>
                    <restriction base="soapenc:Array">
                        <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:Tax[]" />
                    </restriction>
                </complexContent>
            </complexType>
            <complexType name="ArrayOf_tns1_Coupon">
                <complexContent>
                    <restriction base="soapenc:Array">
                        <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:Coupon[]" />
                    </restriction>
                </complexContent>
            </complexType>
            <complexType name="ArrayOf_tns1_Tkt">
                <complexContent>
                    <restriction base="soapenc:Array">
                        <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:Tkt[]" />
                    </restriction>
                </complexContent>
            </complexType>
            <complexType name="ArrayOf_tns1_Foid">
                <complexContent>
                    <restriction base="soapenc:Array">
                        <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:Foid[]" />
                    </restriction>
                </complexContent>
            </complexType>
        </schema>
    </wsdl:types>

    <wsdl:message name="processTktRequest">

        <wsdl:part name="in0" type="tns1:TktInfo" />

    </wsdl:message>

    <wsdl:message name="processTktResponse">

        <wsdl:part name="processTktReturn" type="xsd:string" />

    </wsdl:message>

    <wsdl:portType name="IService">

        <wsdl:operation name="processTkt" parameterOrder="in0">

            <wsdl:input message="impl:processTktRequest" name="processTktRequest" />

            <wsdl:output message="impl:processTktResponse" name="processTktResponse" />

        </wsdl:operation>

    </wsdl:portType>

    <wsdl:binding name="processTktSoapBinding" type="impl:IService">

        <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http " />

        <wsdl:operation name="processTkt">

            <wsdlsoap:operation soapAction="" />

            <wsdl:input name="processTktRequest">

                <wsdlsoap:body namespace="http://impl.wsresiber.emision.iberia.com" use="literal" />

            </wsdl:input>

            <wsdl:output name="processTktResponse">

                <wsdlsoap:body namespace="http://impl.wsresiber.emision.iberia.com" use="literal" />

            </wsdl:output>

        </wsdl:operation>

    </wsdl:binding>

    <wsdl:service name="IServiceService">

        <wsdl:port binding="impl:processTktSoapBinding" name="processTkt">

            <wsdlsoap:address location="http://localhost:8080/WSResiberPruebas/services/processTkt" />

        </wsdl:port>

    </wsdl:service>

</wsdl:definitions>






Buildfile: E:\clases-java\research\WSResiberPruebas\build.xml
un-deployService:
[axis-admin] Processing file E:\clases-java\research\WSResiberPruebas\src\com\ib
eria\emision\wsresiber\impl\undeploy.wsdd
[axis-admin] AxisFault
[axis-admin] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.genera
lException
[axis-admin] faultSubcode:
[axis-admin] faultString: No such operation &apos;undeployment&apos;
[axis-admin] faultActor:
[axis-admin] faultNode:
[axis-admin] faultDetail:
[axis-admin] {http://xml.apache.org/axis/}stackTrace: AxisFault
[axis-admin] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.genera
lException
[axis-admin] faultSubcode:
[axis-admin] faultString: No such operation &amp;apos;undeployment&amp;apos;
[axis-admin] faultActor:
[axis-admin] faultNode:
[axis-admin] faultDetail:
[axis-admin]
[axis-admin] No such operation 'undeployment'
[axis-admin] at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBu
ilder.java:260)
[axis-admin] at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBui
lder.java:169)
[axis-admin] at org.apache.axis.encoding.DeserializationContextImpl.endElement(D
eserializationContextImpl.java:1015)
[axis-admin] at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown S
ource)
[axis-admin] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(U
nknown Source)
[axis-admin] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
ntentDispatcher.dispatch(Unknown Source)
[axis-admin] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
nt(Unknown Source)
[axis-admin] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Sourc
e)
[axis-admin] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Sourc
e)
[axis-admin] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[axis-admin] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source
)
[axis-admin] at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
[axis-admin] at org.apache.axis.encoding.DeserializationContextImpl.parse(Deseri
alizationContextImpl.java:242)
[axis-admin] at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
[axis-admin] at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
[axis-admin] at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
[axis-admin] at org.apache.axis.client.Call.invoke(Call.java:2553)
[axis-admin] at org.apache.axis.client.Call.invoke(Call.java:1672)
[axis-admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:355)
[axis-admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:334)
[axis-admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:341)
[axis-admin] at org.apache.axis.client.AdminClient.process(AdminClient.java:292)
[axis-admin] at org.apache.axis.tools.ant.axis.AdminClientTask.execute(AdminClie
ntTask.java:308)
[axis-admin] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
275)
[axis-admin] at org.apache.tools.ant.Task.perform(Task.java:364)
[axis-admin] at org.apache.tools.ant.Target.execute(Target.java:341)
[axis-admin] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[axis-admin] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[axis-admin] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[axis-admin] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(Int
ernalAntRunner.java:423)
[axis-admin] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(In
ternalAntRunner.java:137)
[axis-admin] Running axis-admin with parameters:
[axis-admin] action:
[axis-admin] url:http://localhost:8080/WSResiberPruebas/services/processTkt
[axis-admin] hostname:null
[axis-admin] port:0
[axis-admin] servletPath:null
[axis-admin] fileProtocol:null
[axis-admin] username:null
[axis-admin] password:null
[axis-admin] transportChain:null
[axis-admin] debug:false

BUILD FAILED
E:\clases-java\research\WSResiberPruebas\build.xml:56: axis-admin failed with  {
http://schemas.xmlsoap.org/soap/envelope/}Server.generalException No such operat
ion 'undeployment'

Total time: 2 seconds










---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to