One possible cause: your web service is behind firewall. One easy work
around:
In side web.xml, change the MIME mapping for the wsdl. Change
<mime-mapping>
<extension>wsdl</extension>
<mime-type>text/xml</mime-type>
</mime-mapping>
to
<mime-mapping>
<extension>wsdl</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
Hope helps!
Li
>I wrote the wsdl included in this mail;
>then WSDL2Java produced for me the java files and the .wsdd files;
>so I deployed the service; it works, but I can't get the automatically
>generated wsdl
>appending ?wsdl to the url of the service; I get a 500 error instead.
>
>Can someone help me?
>(all works fine with the corrispondent rpc-style web service)
>
>Dario
>
>
><?xml version="1.0" encoding="UTF-8"?>
><definitions
> name="RoboImport2"
> targetNamespace="http://rmv3/RoboImport.wsdl"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:tns="http://rmv3/RoboImport.wsdl"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsd1="http://rmv3/RoboImport.xsd1">
> <types>
> <xs:schema
> elementFormDefault="qualified"
> targetNamespace="http://rmv3/RoboImport.xsd1"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:tns="http://rmv3/RoboImport.wsdl"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsd1="http://rmv3/RoboImport.xsd1">
> <xs:element name="ws-parameters">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="username" type="xs:string"/>
> <xs:element name="password" type="xs:string"/>
> <xs:element name="cod-shop" type="xs:string"/>
> <xs:element name="object-type" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
> </types>
> <message name="ImportRequest">
> <part element="xsd1:ws-parameters" name="wsparm"/>
> </message>
> <message name="ImportResponse">
> <part name="result" type="xsd:string"/>
> </message>
> <message name="ImportFault">
> <part name="fault-desc" type="xsd:string"/>
> </message>
> <portType name="RoboImportPortType">
> <operation name="ImportOperation">
> <input message="tns:ImportRequest"/>
> <output message="tns:ImportResponse"/>
> <fault message="tns:ImportFault" name="ImportFault"/>
> </operation>
> </portType>
> <binding name="RoboImportBinding" type="tns:RoboImportPortType">
> <soap:binding style="document"
>transport="http://schemas.xmlsoap.org/soap/http"/>
> <operation name="ImportOperation">
> <soap:operation
>
>soapAction="sa:RoboImport:RoboImportPortType#ImportOperation"
> style="document"/>
> <input>
> <soap:body parts="wsparm" use="literal"/>
> </input>
> <output>
> <soap:body parts="result" use="literal"/>
> </output>
> <fault name="ImportFault">
> <soap:fault
>
>encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> name="tns:ImportFault"
> namespace="http://rmv3/RoboImport/binding"
> use="literal"/>
> </fault>
> </operation>
> </binding>
> <service name="RoboImport2">
> <port binding="tns:RoboImportBinding" name="RoboImport2">
> <soap:address
>location="http://localhost/axis/services/RoboImport2"/>
> </port>
> </service>
></definitions>
>
>