Results 1 to 2 of 2
  1. #1
    Jackson86 is offline Member
    Join Date
    Sep 2010
    Rep Power

    Default 405 error when trying to call web service method

    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 for web – service call:

    QName WS_NAME = new QName("", "Test_SOAP_HTTP_Service");
    String url = "http://anyhost:7801/Test_SOAP_HTTP_Service";
    TestSOAPHTTPService service = new TestSOAPHTTPService(new URL(url), WS_NAME);
    TestPortType wsEndpoint = service.getTestSOAPHTTPPort();
    ReqEmployee reqEmployee = new ObjectFactory().createReqEmployee();

    All web – service stub classes in example listed above are generated with wsimport:

    public class TestSOAPHTTPService

    @XmlType(name = "reqEmployee", propOrder = {
    public class ReqEmployee

    So i get the following error: DLException: 2 counts of InaccessibleWSDLException. Server returned HTTP response code: 405 for URL: = "http://anyhost:7801/Test_SOAP_HTTP_Service Server returned HTTP response code: 405 for URL: = "http://anyhost:7801/Test_SOAP_HTTP_Service?wsdl

    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 ‘http://anyhost:7801/Test_SOAP_HTTP_Service’ url. Please help me, how to do this or fix this problem by any other way.

    Every help will be appreciate. Thanks.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

Similar Threads

  1. Call Web Service method through a Proxy
    By Dimis in forum Web Frameworks
    Replies: 0
    Last Post: 11-29-2012, 06:02 PM
  2. Tutorial how to call OSGI service from EAR package
    By rcbandit in forum Advanced Java
    Replies: 0
    Last Post: 01-14-2012, 06:29 PM
  3. Replies: 1
    Last Post: 03-17-2010, 06:25 AM
  4. how to call service method inside another service
    By kirtichopra2003 in forum Web Frameworks
    Replies: 1
    Last Post: 10-24-2009, 03:19 AM
  5. How to Call a java service
    By omikeneil in forum Advanced Java
    Replies: 3
    Last Post: 10-17-2009, 04:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts