<!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="https://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;">
    org.jboss.ws.core.CommonSOAPFaultException: Endpoint {http://www.pruhealth.co.uk/heal/TestEJBService}PocServiceSOAP does not
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/arvindpratap">arvind narayan</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/799595#799595">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I have created a EJB project and exposed it as a webservice when I am hitting this webservice bt SOAP UI getting the below error</p><p><span style="color: navy; font-size: 10pt; text-decoration: underline; font-family: Consolas;">org.jboss.ws.core.CommonSOAPFaultException</span><span style="font-family: Consolas; color: black; font-size: 10pt;"><span>: Endpoint {</span><a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/TestEJBService" rel="nofollow" target="_blank">http://www.pruhealth.co.uk/heal/TestEJBService</a><span>}PocServiceSOAP does not </span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have placed the wsdl at&#160; "/META-INF/wsdl/TestEJBService.wsdl" </p><p>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;<br/>&lt;wsdl:definitions xmlns:ps="<a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/TestEJBService" rel="nofollow">http://www.pruhealth.co.uk/heal/TestEJBService</a>"<br/> xmlns:soap="<a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/soap/" rel="nofollow">http://schemas.xmlsoap.org/wsdl/soap/</a>" <br/> xmlns:wsdl="<a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/" rel="nofollow">http://schemas.xmlsoap.org/wsdl/</a>"<br/> xmlns:xsd="<a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow">http://www.w3.org/2001/XMLSchema</a>" <br/> xmlns:pos="<a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/PocService" rel="nofollow">http://www.pruhealth.co.uk/heal/PocService</a>"<br/> targetNamespace="<a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/TestEJBService" rel="nofollow">http://www.pruhealth.co.uk/heal/TestEJBService</a>" <br/> name="TestEJBService"&gt;</p><p> &lt;wsdl:import namespace="<a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/PocService" rel="nofollow">http://www.pruhealth.co.uk/heal/PocService</a>"<br/>&#160; location="PocService.xsd" /&gt;</p><p><br/> &lt;wsdl:message name="PocServiceInput"&gt;<br/>&#160; &lt;wsdl:part name="body" element="pos:PocRequest"&gt;&lt;/wsdl:part&gt;<br/> &lt;/wsdl:message&gt;<br/> &lt;wsdl:message name="PocServiceOutput"&gt;<br/>&#160; &lt;wsdl:part name="body" element="pos:PocResponse"&gt;&lt;/wsdl:part&gt;<br/> &lt;/wsdl:message&gt;</p><p> &lt;wsdl:portType name="PocServicePort"&gt;<br/>&#160; &lt;wsdl:operation name="getPocDetails"&gt;<br/>&#160;&#160; &lt;wsdl:input message="ps:PocServiceInput" /&gt;<br/>&#160;&#160; &lt;wsdl:output message="ps:PocServiceOutput" /&gt;<br/>&#160; &lt;/wsdl:operation&gt;<br/> &lt;/wsdl:portType&gt;</p><p> &lt;wsdl:binding name="PocServiceSOAPBinding" type="ps:PocServicePort"&gt;<br/>&#160; &lt;soap:binding style="document" transport="<a class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/http" rel="nofollow">http://schemas.xmlsoap.org/soap/http</a>" /&gt;<br/>&#160; &lt;wsdl:operation name="getPocDetails"&gt;<br/>&#160;&#160; &lt;soap:operation soapAction="" /&gt;<br/>&#160;&#160; &lt;wsdl:input&gt;<br/>&#160;&#160;&#160; &lt;soap:body namespace="<a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/PocService" rel="nofollow">http://www.pruhealth.co.uk/heal/PocService</a>"<br/>&#160;&#160;&#160;&#160; use="literal" /&gt;<br/>&#160;&#160; &lt;/wsdl:input&gt;<br/>&#160;&#160; &lt;wsdl:output&gt;<br/>&#160;&#160;&#160; &lt;soap:body namespace="<a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/PocService" rel="nofollow">http://www.pruhealth.co.uk/heal/PocService</a>"<br/>&#160;&#160;&#160;&#160; use="literal" /&gt;<br/>&#160;&#160; &lt;/wsdl:output&gt;<br/>&#160; &lt;/wsdl:operation&gt;<br/> &lt;/wsdl:binding&gt;</p><p> &lt;wsdl:service name="TestEJBService"&gt;<br/>&#160; &lt;wsdl:port binding="ps:PocServiceSOAPBinding" name="PocServiceSOAP"&gt;<br/>&#160;&#160; &lt;soap:address location="<a class="jive-link-external-small" href="http://127.0.0.1:8080/TestEJBService/TestEJBService" rel="nofollow">http://127.0.0.1:8080/TestEJBService/TestEJBService</a>" /&gt;<br/>&#160; &lt;/wsdl:port&gt;<br/> &lt;/wsdl:service&gt;</p><p><br/>&lt;/wsdl:definitions&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>===============================================================</p><p>I have imported PocService.xsd into wsdl</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="utf-8" ?&gt;</p><p>&lt;xs:schema xmlns:pos="<a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/PocService" rel="nofollow">http://www.pruhealth.co.uk/heal/PocService</a>"</p><p> attributeFormDefault="unqualified" elementFormDefault="unqualified"</p><p> targetNamespace="<a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/PocService" rel="nofollow">http://www.pruhealth.co.uk/heal/PocService</a>" </p><p> xmlns:xs="<a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow">http://www.w3.org/2001/XMLSchema</a>"&gt;</p><p> &lt;xs:element name="PocRequest"&gt;</p><p>&#160; &lt;xs:complexType&gt;</p><p>&#160;&#160; &lt;xs:sequence&gt;</p><p>&#160;&#160;&#160; &lt;xs:element name="PrincipalAmount" type="xs:integer"</p><p>&#160;&#160;&#160;&#160; minOccurs="1" /&gt;</p><p>&#160;&#160;&#160; &lt;xs:element name="PrincipalRate" type="xs:float"</p><p>&#160;&#160;&#160;&#160; minOccurs="1" /&gt;</p><p>&#160;&#160;&#160; &lt;xs:element name="Name" type="xs:string" minOccurs="0" /&gt;</p><p>&#160;&#160; &lt;/xs:sequence&gt;</p><p>&#160; &lt;/xs:complexType&gt;</p><p> &lt;/xs:element&gt;</p><p> &lt;xs:element name="PocResponse"&gt;</p><p>&#160; &lt;xs:complexType&gt;</p><p>&#160;&#160; &lt;xs:sequence&gt;</p><p>&#160;&#160;&#160; &lt;xs:element name="TotalAmount" type="xs:float" minOccurs="1" /&gt;</p><p>&#160;&#160;&#160; &lt;xs:element name="Name" type="xs:string" minOccurs="0" /&gt;</p><p>&#160;&#160; &lt;/xs:sequence&gt;</p><p>&#160; &lt;/xs:complexType&gt;</p><p> &lt;/xs:element&gt;</p><p>&lt;/xs:schema&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>EJB CLASS:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>package uk.co.pruhealth.heal.service;</p><p>import java.math.BigInteger;</p><p>import javax.ejb.Stateless;<br/>import javax.jws.WebMethod;<br/>import javax.jws.WebService;</p><p>import org.jboss.wsf.spi.annotation.WebContext;</p><p>import uk.co.pruhealth.heal.pocservice.PocRequest;<br/>import uk.co.pruhealth.heal.pocservice.PocResponse;</p><p>@Stateless<br/>@WebContext(contextRoot="TestEJBService", urlPattern="/TestEJBService")<br/>@WebService(serviceName = "TestEJBService", portName = "PocServiceSOAP", <br/>&#160; endpointInterface = "uk.co.pruhealth.heal.service.PocRemote",<br/>&#160; wsdlLocation="/META-INF/wsdl/TestEJBService.wsdl",<br/>&#160; targetNamespace = "<a class="jive-link-external-small" href="http://www.pruhealth.co.uk/heal/TestEJBService" rel="nofollow">http://www.pruhealth.co.uk/heal/TestEJBService</a>")</p><p>public class PocBean implements PocRemote {<br/> <br/> @WebMethod<br/> public PocResponse getPocDetails(PocRequest request){ <br/>&#160; PocResponse response = new PocResponse(); <br/>&#160; BigInteger p= request.getPrincipalAmount();<br/>&#160; int a = p.intValue();<br/>&#160; Float r = request.getPrincipalRate();<br/>&#160; Float totalAmount = a * r * 10; <br/>&#160; request.getPrincipalAmount();<br/>&#160; request.getPrincipalRate();<br/>&#160; response.setTotalAmount(totalAmount);<br/>&#160; response.setName(request.getName());<br/>&#160; return response;<br/> }</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>package uk.co.pruhealth.heal.service;</p><p>import javax.ejb.Remote;<br/>import javax.jws.WebMethod;<br/>import javax.jws.WebService;<br/>import javax.jws.soap.SOAPBinding;</p><p>import uk.co.pruhealth.heal.pocservice.PocRequest;<br/>import uk.co.pruhealth.heal.pocservice.PocResponse;</p><p><br/>@Remote<br/>@WebService(name = "ConverterPortType",<br/>targetNamespace = "<a class="jive-link-external-small" href="http://jaxws.samples.geronimo.apache.org" rel="nofollow">http://jaxws.samples.geronimo.apache.org</a>")<br/>public interface PocRemote {<br/> public PocResponse getPocDetails(PocRequest request);<br/>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Please provide me the solution.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/799595#799595">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="https://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>