axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "AS-IT-3-9-20 Loesche, Mathias" <as-it-3-9...@auswaertiges-amt.de>
Subject Re: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected
Date Thu, 09 Nov 2006 14:07:26 GMT
Hello,

as I've read in other posts there resson can be a false wsdd file which 
does not match to the gotten soap xml. I've generated the wsdl with the 
axis Admin client with the following wsdd file


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

<service name="HelloWorldXmlEnc" provider="java:RPC" style="document" 
use="literal">
<requestFlow>
<handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
<parameter name="passwordCallbackClass" value="aa.ePWCallback"/>
<parameter name="action" value="Encrypt" />
<parameter name="decryptionPropFile" value="server.crypto.properties" />
</handler>
<handler type="soapmonitor"/>
</requestFlow>
<responseFlow>
<handler type="soapmonitor"/>
</responseFlow>
<parameter name="className" value="aa.HelloWorld"/>
<parameter name="allowedMethods" value="*"/>
</service>

</deployment>

using the command line
java -classpath $AXISCLASSPATH org.apache.axis.client.AdminClient -l 
http://127.0.0.1:8080/axis/servlet/AxisServlet deploy_service.wsdd

That generates the following wsdl:

<wsdl:definitions 
targetNamespace="http://localhost:8080/axis/services/HelloWorldXmlEnc">
−
<!--
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
-->
−
<wsdl:types>
−
<schema elementFormDefault="qualified" targetNamespace="http://aa">
<element name="in0" type="xsd:string"/>
</schema>
−
<schema elementFormDefault="qualified" 
targetNamespace="http://localhost:8080/axis/services/HelloWorldXmlEnc">
<element name="halloReturn" type="xsd:string"/>
</schema>
</wsdl:types>
−
<wsdl:message name="halloResponse">
<wsdl:part element="impl:halloReturn" name="halloReturn"/>
</wsdl:message>
−
<wsdl:message name="halloRequest">
<wsdl:part element="tns1:in0" name="in0"/>
</wsdl:message>
−
<wsdl:portType name="HelloWorld">
−
<wsdl:operation name="hallo" parameterOrder="in0">
<wsdl:input message="impl:halloRequest" name="halloRequest"/>
<wsdl:output message="impl:halloResponse" name="halloResponse"/>
</wsdl:operation>
</wsdl:portType>
−
<wsdl:binding name="HelloWorldXmlEncSoapBinding" type="impl:HelloWorld">
<wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
−
<wsdl:operation name="hallo">
<wsdlsoap:operation soapAction=""/>
−
<wsdl:input name="halloRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
−
<wsdl:output name="halloResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
−
<wsdl:service name="HelloWorldService">
−
<wsdl:port binding="impl:HelloWorldXmlEncSoapBinding" 
name="HelloWorldXmlEnc">
<wsdlsoap:address 
location="http://localhost:8080/axis/services/HelloWorldXmlEnc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Please, if anybody as an idea where to look respond .

Regards
Mathias


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message