Hi, I have the following wsdl (in attach) that I cannot modify.
If I do WSDL2Java, there are two strange things:
* the service name in "deploy.wsdd" is mistaken. It is named as
clientServicePort and NOT clientService (as in <service> of the WSDL)
* as you can see, in same file there's a (?) wrong namespace name:
qname="ns:>documento". What's that ">" ?
* If I correct that error by hand and I deploy it, my Axis Server
gives this error:<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring>
makeTypeElement() was told to create a type "{http://clientService}>documento", with no containing element
</faultstring>
<detail>
<ns1:stackTrace>
makeTypeElement() was told to create a type "{http://clientService}>documento", with no containing element
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1723)
at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:395)
at org.apache.axis.wsdl.fromJava.Types.writeTypeAndSubTypeForPart(Types.java:416)
at org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1864)
at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.java:1460)
at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1087)
at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1056)
at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:471)
at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:322)
at org.apache.axis.providers.BasicProvider.generateWSDL(BasicProvider.java:237)
at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
at org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:316)
at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:467)
at org.apache.axis.transport.http.SimpleAxisWorker.execute(SimpleAxisWorker.java:328)
at org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker.java:155)
at org.apache.axis.transport.http.SimpleAxisServer.run(SimpleAxisServer.java:241)
at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java:284)
at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java:292)
at org.apache.axis.transport.http.SimpleAxisServer.main(SimpleAxisServer.java:373)
</ns1:stackTrace>
Any idea?
<?xml version="1.0" encoding="UTF-8"?> <definitions name="HelloWorld" targetNamespace="http://clientService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://clientService" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<types>
<schema targetNamespace="http://clientService" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="documento">
<simpleType>
<restriction base="xs:string"/>
</simpleType>
</element>
</schema>
</types>
<message name="HelloWorldResponseMessage">
<part name="payload" type="xs:string"/>
</message>
<message name="HelloWorldRequestMessage1">
<part element="tns:documento" name="payload"/>
</message>
<portType name="HelloWorld">
<operation name="process">
<input message="tns:HelloWorldRequestMessage1"/>
<output message="tns:HelloWorldResponseMessage"/>
</operation>
</portType>
<binding name="clientServiceBinding" type="tns:HelloWorld">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
<operation name="process">
<soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
</input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
</output>
</operation>
</binding>
<service name="clientService">
<port binding="tns:clientServiceBinding" name="clientServicePort">
<soap:address location="http://sagitta.itc.it:50000/active-bpel/services/clientService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
</port>
</service>
</definitions>
