I have a Java class (MathService) that I deploy as a web service in
Axis.
If my server-config.wsdd file looks like this
<service name="MathService" provider="java:RPC" style="wrapped">
<parameter name=className value="com.develop.MathService"/>
<parameter name="allowedMethods value="*"/>
</service>
Then life is good. I get WSDL that will generate a wrapped service for
me.
However, if I try this
<service name="MathService" provider="java:RPC" style="document">
<parameter name=className value="com.develop.MathService"/>
<parameter name="allowedMethods value="*"/>
</service>
I would expect non wrapped WSDL to be generated, but what I get instead
is an exception
Sorry, something seems to have gone wrong... here are the details:
Fault - WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.:
The value of the attribute "prefix="xmlns",localpart="tns1",
rawname="xmlns:tns1"" is invalid.
Prefixed namespace bindings may not be empty.
: org.xml.sax.SAXParseException:
The value of the attribute "prefix="xmlns",localpart="tns1",
rawname="xmlns:tns1"" is invalid. Prefixed namespace bindings may not be empty.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:269)
plus lots more stack trace
Am I
a) missing something
b) expecting too much
c) seeing a bug
This is in 1.1beta1 BTW,
Thanks,
Kevin Jones