<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Invalid WSDL (JBOSS EAP 5.0 )
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/nareshs">Naresh S</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/549458#549458">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p style="MARGIN-BOTTOM: 0pt; mso-layout-grid-align: none"><strong style="mso-bidi-font-weight: normal; text-decoration: underline; ">Base Class</strong> </p><p style="MARGIN-BOTTOM: 0pt; mso-layout-grid-align: none">          </p><p>@XmlAccessorType(XmlAccessType.FIELD)</p><p><span>@XmlType(name = "fooResponse", namespace = "</span><a class="jive-link-external-small" href="http://a.ws.test/" target="_blank">http://a.ws.test/</a><span>")</span></p><p>public class BaseResponse {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      @XmlElement(required=true)</p><p>      private String hello;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      public String getHello() {</p><p>            return hello;</p><p>      }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      public void setHello(String hello) {</p><p>            this.hello = hello;</p><p>      }</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong style="mso-bidi-font-weight: normal; text-decoration: underline; ">Standard Response Class</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><span>@XmlType(name = "fooResponse", namespace = "</span><a class="jive-link-external-small" href="http://b.ws.test/" target="_blank">http://b.ws.test/</a><span>")</span></p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">@XmlAccessorType(XmlAccessType.<em>FIELD</em>)</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><strong>public</strong> <strong>class</strong> StandardResponse <strong>extends</strong> BaseResponse {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="MARGIN-LEFT: 0.5in">}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong style="mso-bidi-font-weight: normal; text-decoration: underline; ">Fault Message</strong></p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><span>@WebFault(name="TestFaultMessage", targetNamespace="</span><a class="jive-link-external-small" href="http://b.ws.test/" target="_blank">http://b.ws.test/</a><span>")</span></p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><strong>public</strong> <strong>class</strong> TestFaultMessage <strong>extends</strong> Exception {</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">    </p><p style="MARGIN-LEFT: 0.5in">}</p><p><strong style="mso-bidi-font-weight: normal; text-decoration: underline; ">My Service</strong></p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><span>@WebService(endpointInterface="test.ws.MyServiceInterface",name = "MyService", targetNamespace="</span><a class="jive-link-external-small" href="http://ws.test" target="_blank">http://ws.test</a><span>")</span></p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><strong>public</strong> <strong>class</strong> MyService <strong>implements</strong> MyServiceInterface{</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">      @WebMethod</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">       <strong>public</strong> @WebResult StandardResponse foo() <strong>throws</strong> TestFaultMessage{</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">       <strong>return</strong> <strong>new</strong> StandardResponse();   </p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">      }</p><p style="MARGIN-LEFT: 0.5in">}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong style="mso-bidi-font-weight: normal; text-decoration: underline; ">Interface</strong></p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><span>@WebService(name = "MyService", targetNamespace="</span><a class="jive-link-external-small" href="http://ws.test" target="_blank">http://ws.test</a><span>")</span></p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"><strong>public</strong> <strong>interface</strong> MyServiceInterface {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">      @WebMethod</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">       <strong>public</strong> @WebResult StandardResponse foo() <strong>throws</strong> TestFaultMessage;</p><p style="MARGIN-LEFT: 0.5in">}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>When the WSDL is generated via Servlet i.e., using ?wsdl</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am getting the following</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p> {code:xml}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>     <definitions name='MyServiceService' targetNamespace='</span><a class="jive-link-external-small" href="http://ws.test" target="_blank">http://ws.test</a><span>' xmlns='</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/" target="_blank">http://schemas.xmlsoap.org/wsdl/</a><span>' xmlns:ns1='</span><a class="jive-link-external-small" href="http://ws.test/" target="_blank">http://ws.test/</a><span>' xmlns:ns2='</span><a class="jive-link-external-small" href="http://b.ws.test/" target="_blank">http://b.ws.test/</a><span>' xmlns:ns3='</span><a class="jive-link-external-small" href="http://a.ws.test/" target="_blank">http://a.ws.test/</a><span>' xmlns:soap='</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/soap/" target="_blank">http://schemas.xmlsoap.org/wsdl/soap/</a><span>' xmlns:tns='</span><a class="jive-link-external-small" href="http://ws.test" target="_blank">http://ws.test</a><span>' xmlns:xsd='</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a><span>'></span><br/> <types><br/><span>  <xs:schema targetNamespace='</span><a class="jive-link-external-small" href="http://b.ws.test/" target="_blank">http://b.ws.test/</a><span>' version='1.0' xmlns:ns1='</span><a class="jive-link-external-small" href="http://a.ws.test/" target="_blank">http://a.ws.test/</a><span>' xmlns:ns2='</span><a class="jive-link-external-small" href="http://ws.test" target="_blank">http://ws.test</a><span>' xmlns:xs='</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a><span>'></span><br/><span>   <xs:import namespace='</span><a class="jive-link-external-small" href="http://a.ws.test/'/" target="_blank">http://a.ws.test/'/</a><span>></span><br/><span>   <xs:import namespace='</span><a class="jive-link-external-small" href="http://ws.test'/" target="_blank">http://ws.test'/</a><span>></span><br/>   <xs:element name='TestFaultMessage' type='ns2:TestFaultMessage'/><br/>   <xs:complexType name='fooResponse'><br/>    <xs:complexContent><br/>     <xs:extension base='ns1:fooResponse'><br/>      <xs:sequence/><br/>     </xs:extension><br/>    </xs:complexContent><br/>   </xs:complexType><br/>  </xs:schema><br/><span>  <xs:schema targetNamespace='</span><a class="jive-link-external-small" href="http://a.ws.test/" target="_blank">http://a.ws.test/</a><span>' version='1.0' xmlns:xs='</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a><span>'></span><br/>   <xs:complexType name='fooResponse'><br/>    <xs:sequence><br/>     <xs:element name='hello' type='xs:string'/><br/>    </xs:sequence><br/>   </xs:complexType><br/>  </xs:schema><br/><span>  <xs:schema targetNamespace='</span><a class="jive-link-external-small" href="http://ws.test" target="_blank">http://ws.test</a><span>' version='1.0' xmlns:ns1='</span><a class="jive-link-external-small" href="http://ws.test/" target="_blank">http://ws.test/</a><span>' xmlns:xs='</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a><span>'></span><br/><span>   <xs:import namespace='</span><a class="jive-link-external-small" href="http://ws.test/'/" target="_blank">http://ws.test/'/</a><span>></span><br/>   <xs:element name='foo' nillable='true' type='ns1:foo'/><br/>   <xs:element name='fooResponse' nillable='true' type='ns1:fooResponse'/><br/>   <xs:complexType name='TestFaultMessage'><br/>    <xs:sequence><br/>     <xs:element minOccurs='0' name='message' type='xs:string'/><br/>    </xs:sequence><br/>   </xs:complexType><br/>  </xs:schema><br/><span>  <xs:schema targetNamespace='</span><a class="jive-link-external-small" href="http://ws.test/" target="_blank">http://ws.test/</a><span>' version='1.0' xmlns:ns1='</span><a class="jive-link-external-small" href="http://b.ws.test/" target="_blank">http://b.ws.test/</a><span>' xmlns:tns='</span><a class="jive-link-external-small" href="http://ws.test/" target="_blank">http://ws.test/</a><span>' xmlns:xs='</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a><span>'></span><br/><span>   <xs:import namespace='</span><a class="jive-link-external-small" href="http://b.ws.test/'/" target="_blank">http://b.ws.test/'/</a><span>></span><br/>   <xs:element name='foo' type='tns:foo'/><br/>   <xs:element name='fooResponse' type='tns:fooResponse'/><br/>   <xs:complexType name='foo'><br/>    <xs:sequence/><br/>   </xs:complexType><br/>   <xs:complexType name='fooResponse'><br/>    <xs:sequence><br/>     <xs:element minOccurs='0' name='return' type='ns1:fooResponse'/><br/>    </xs:sequence><br/>   </xs:complexType><br/>  </xs:schema><br/> </types><br/> <message name='MyService_fooResponse'><br/>  <part element='tns:fooResponse' name='fooResponse'></part><br/> </message><br/> <message name='TestFaultMessage'><br/>  <part element='tns:TestFaultMessage' name='TestFaultMessage'></part><br/> </message><br/> <message name='MyService_foo'><br/>  <part element='tns:foo' name='foo'></part><br/> </message><br/> <portType name='MyService'><br/>  <operation name='foo' parameterOrder='foo'><br/>   <input message='tns:MyService_foo'></input><br/>   <output message='tns:MyService_fooResponse'></output><br/>   <fault message='tns:TestFaultMessage' name='TestFaultMessage'></fault><br/>  </operation><br/> </portType><br/> <binding name='MyServiceBinding' type='tns:MyService'><br/><span>  <soap:binding style='document' transport='</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/http'/" target="_blank">http://schemas.xmlsoap.org/soap/http'/</a><span>></span><br/>  <operation name='foo'><br/>   <soap:operation soapAction=''/><br/>   <input><br/>    <soap:body use='literal'/><br/>   </input><br/>   <output><br/>    <soap:body use='literal'/><br/>   </output><br/>   <fault name='TestFaultMessage'><br/>    <soap:fault name='TestFaultMessage' use='literal'/><br/>   </fault><br/>  </operation><br/> </binding><br/> <service name='MyServiceService'><br/>  <port binding='tns:MyServiceBinding' name='MyServicePort'><br/><span>   <soap:address location='</span><a class="jive-link-external-small" href="http://cvdxe96533-lh03:8080/TSMVRClient/MyService'/" target="_blank">http://cvdxe96533-lh03:8080/TSMVRClient/MyService'/</a><span>></span><br/>  </port><br/> </service><br/></definitions></p><p>{code}</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/549458#549458">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>