<!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">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </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;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; @XmlElement(required=true)</p><p>&#160;&#160;&#160;&#160;&#160; private String hello;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; public String getHello() {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return hello;</p><p>&#160;&#160;&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; public void setHello(String hello) {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.hello = hello;</p><p>&#160;&#160;&#160;&#160;&#160; }</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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;">&#160;</p><p style="MARGIN-LEFT: 0.5in">}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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">&#160;&#160;&#160; </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">&#160;&#160;&#160;&#160;&#160; @WebMethod</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160; <strong>public</strong> @WebResult StandardResponse foo() <strong>throws</strong> TestFaultMessage{</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160; <strong>return</strong> <strong>new</strong> StandardResponse();&#160;&#160; </p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160; }</p><p style="MARGIN-LEFT: 0.5in">}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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;">&#160;</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160; @WebMethod</p><p style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160; <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;">&#160;</p><p>When the WSDL is generated via Servlet i.e., using ?wsdl</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am getting the following</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> {code:xml}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160; &lt;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>'&gt;</span><br/> &lt;types&gt;<br/><span>&#160; &lt;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>'&gt;</span><br/><span>&#160;&#160; &lt;xs:import namespace='</span><a class="jive-link-external-small" href="http://a.ws.test/'/" target="_blank">http://a.ws.test/'/</a><span>&gt;</span><br/><span>&#160;&#160; &lt;xs:import namespace='</span><a class="jive-link-external-small" href="http://ws.test'/" target="_blank">http://ws.test'/</a><span>&gt;</span><br/>&#160;&#160; &lt;xs:element name='TestFaultMessage' type='ns2:TestFaultMessage'/&gt;<br/>&#160;&#160; &lt;xs:complexType name='fooResponse'&gt;<br/>&#160;&#160;&#160; &lt;xs:complexContent&gt;<br/>&#160;&#160;&#160;&#160; &lt;xs:extension base='ns1:fooResponse'&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;xs:sequence/&gt;<br/>&#160;&#160;&#160;&#160; &lt;/xs:extension&gt;<br/>&#160;&#160;&#160; &lt;/xs:complexContent&gt;<br/>&#160;&#160; &lt;/xs:complexType&gt;<br/>&#160; &lt;/xs:schema&gt;<br/><span>&#160; &lt;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>'&gt;</span><br/>&#160;&#160; &lt;xs:complexType name='fooResponse'&gt;<br/>&#160;&#160;&#160; &lt;xs:sequence&gt;<br/>&#160;&#160;&#160;&#160; &lt;xs:element name='hello' type='xs:string'/&gt;<br/>&#160;&#160;&#160; &lt;/xs:sequence&gt;<br/>&#160;&#160; &lt;/xs:complexType&gt;<br/>&#160; &lt;/xs:schema&gt;<br/><span>&#160; &lt;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>'&gt;</span><br/><span>&#160;&#160; &lt;xs:import namespace='</span><a class="jive-link-external-small" href="http://ws.test/'/" target="_blank">http://ws.test/'/</a><span>&gt;</span><br/>&#160;&#160; &lt;xs:element name='foo' nillable='true' type='ns1:foo'/&gt;<br/>&#160;&#160; &lt;xs:element name='fooResponse' nillable='true' type='ns1:fooResponse'/&gt;<br/>&#160;&#160; &lt;xs:complexType name='TestFaultMessage'&gt;<br/>&#160;&#160;&#160; &lt;xs:sequence&gt;<br/>&#160;&#160;&#160;&#160; &lt;xs:element minOccurs='0' name='message' type='xs:string'/&gt;<br/>&#160;&#160;&#160; &lt;/xs:sequence&gt;<br/>&#160;&#160; &lt;/xs:complexType&gt;<br/>&#160; &lt;/xs:schema&gt;<br/><span>&#160; &lt;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>'&gt;</span><br/><span>&#160;&#160; &lt;xs:import namespace='</span><a class="jive-link-external-small" href="http://b.ws.test/'/" target="_blank">http://b.ws.test/'/</a><span>&gt;</span><br/>&#160;&#160; &lt;xs:element name='foo' type='tns:foo'/&gt;<br/>&#160;&#160; &lt;xs:element name='fooResponse' type='tns:fooResponse'/&gt;<br/>&#160;&#160; &lt;xs:complexType name='foo'&gt;<br/>&#160;&#160;&#160; &lt;xs:sequence/&gt;<br/>&#160;&#160; &lt;/xs:complexType&gt;<br/>&#160;&#160; &lt;xs:complexType name='fooResponse'&gt;<br/>&#160;&#160;&#160; &lt;xs:sequence&gt;<br/>&#160;&#160;&#160;&#160; &lt;xs:element minOccurs='0' name='return' type='ns1:fooResponse'/&gt;<br/>&#160;&#160;&#160; &lt;/xs:sequence&gt;<br/>&#160;&#160; &lt;/xs:complexType&gt;<br/>&#160; &lt;/xs:schema&gt;<br/> &lt;/types&gt;<br/> &lt;message name='MyService_fooResponse'&gt;<br/>&#160; &lt;part element='tns:fooResponse' name='fooResponse'&gt;&lt;/part&gt;<br/> &lt;/message&gt;<br/> &lt;message name='TestFaultMessage'&gt;<br/>&#160; &lt;part element='tns:TestFaultMessage' name='TestFaultMessage'&gt;&lt;/part&gt;<br/> &lt;/message&gt;<br/> &lt;message name='MyService_foo'&gt;<br/>&#160; &lt;part element='tns:foo' name='foo'&gt;&lt;/part&gt;<br/> &lt;/message&gt;<br/> &lt;portType name='MyService'&gt;<br/>&#160; &lt;operation name='foo' parameterOrder='foo'&gt;<br/>&#160;&#160; &lt;input message='tns:MyService_foo'&gt;&lt;/input&gt;<br/>&#160;&#160; &lt;output message='tns:MyService_fooResponse'&gt;&lt;/output&gt;<br/>&#160;&#160; &lt;fault message='tns:TestFaultMessage' name='TestFaultMessage'&gt;&lt;/fault&gt;<br/>&#160; &lt;/operation&gt;<br/> &lt;/portType&gt;<br/> &lt;binding name='MyServiceBinding' type='tns:MyService'&gt;<br/><span>&#160; &lt;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>&gt;</span><br/>&#160; &lt;operation name='foo'&gt;<br/>&#160;&#160; &lt;soap:operation soapAction=''/&gt;<br/>&#160;&#160; &lt;input&gt;<br/>&#160;&#160;&#160; &lt;soap:body use='literal'/&gt;<br/>&#160;&#160; &lt;/input&gt;<br/>&#160;&#160; &lt;output&gt;<br/>&#160;&#160;&#160; &lt;soap:body use='literal'/&gt;<br/>&#160;&#160; &lt;/output&gt;<br/>&#160;&#160; &lt;fault name='TestFaultMessage'&gt;<br/>&#160;&#160;&#160; &lt;soap:fault name='TestFaultMessage' use='literal'/&gt;<br/>&#160;&#160; &lt;/fault&gt;<br/>&#160; &lt;/operation&gt;<br/> &lt;/binding&gt;<br/> &lt;service name='MyServiceService'&gt;<br/>&#160; &lt;port binding='tns:MyServiceBinding' name='MyServicePort'&gt;<br/><span>&#160;&#160; &lt;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>&gt;</span><br/>&#160; &lt;/port&gt;<br/> &lt;/service&gt;<br/>&lt;/definitions&gt;</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>