<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Java Programming Forum - Learn Java Programming - Web Frameworks</title>
		<link>http://www.java-forums.org/</link>
		<description>Discussions on other Java web frameworks, APIs and libraries.</description>
		<language>en</language>
		<lastBuildDate>Thu, 23 May 2013 12:59:13 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.java-forums.org/images/misc/rss.png</url>
			<title>Java Programming Forum - Learn Java Programming - Web Frameworks</title>
			<link>http://www.java-forums.org/</link>
		</image>
		<item>
			<title>405 error when trying to call web service method</title>
			<link>http://www.java-forums.org/web-frameworks/74009-405-error-when-trying-call-web-service-method.html</link>
			<pubDate>Mon, 20 May 2013 20:05:05 GMT</pubDate>
			<description>Hi, everybody. 
 
Please, help me with following problem, i have tried all variants and don’t know what to do now: 
 
I,m using the following code...</description>
			<content:encoded><![CDATA[<div>Hi, everybody.<br />
<br />
Please, help me with following problem, i have tried all variants and don’t know what to do now:<br />
<br />
I,m using the following code for web – service call:<br />
<br />
QName WS_NAME = new QName(&quot;http://testws.com.ua&quot;, &quot;Test_SOAP_HTTP_Service&quot;);<br />
String url = &quot;http://anyhost:7801/Test_SOAP_HTTP_Service&quot;;<br />
TestSOAPHTTPService service = new TestSOAPHTTPService(new URL(url), WS_NAME);<br />
TestPortType wsEndpoint = service.getTestSOAPHTTPPort();<br />
ReqEmployee reqEmployee = new ObjectFactory().createReqEmployee();<br />
wsEndpoint.getEmployee(reqEmployee);<br />
<br />
All web – service stub classes in example listed above  are generated with wsimport:<br />
<br />
public class TestSOAPHTTPService<br />
    extends javax.xml.ws.Service<br />
…<br />
@XmlAccessorType(XmlAccessType.FIELD)<br />
@XmlType(name = &quot;reqEmployee&quot;, propOrder = {<br />
    &quot;strHiredate&quot;<br />
})<br />
public class ReqEmployee<br />
<br />
So i get the following error:<br />
<br />
com.sun.xml.internal.ws.wsdl.parser.InaccessibleWS  DLException: 2 counts of InaccessibleWSDLException.<br />
<br />
java.io.IOException: Server returned HTTP response code: 405 for URL: = &quot;http://anyhost:7801/Test_SOAP_HTTP_Service<br />
java.io.IOException: Server returned HTTP response code: 405 for URL: = &quot;http://anyhost:7801/Test_SOAP_HTTP_Service?wsdl<br />
<br />
As I understood, the reason is that, wsdl is closed for access, and i need to create my endpoint object with local wsdl file, and actual web-service calls should be sent to ‘<a href="http://anyhost:7801/Test_SOAP_HTTP_Service’" target="_blank" rel="nofollow">http://anyhost:7801/Test_SOAP_HTTP_Service’</a> url. Please help me, how to do this or fix this problem by any other way.<br />
<br />
Every help will be appreciate. Thanks.</div>

]]></content:encoded>
			<category domain="http://www.java-forums.org/web-frameworks/">Web Frameworks</category>
			<dc:creator>Jackson86</dc:creator>
			<guid isPermaLink="true">http://www.java-forums.org/web-frameworks/74009-405-error-when-trying-call-web-service-method.html</guid>
		</item>
	</channel>
</rss>
