SOAP Example On JBOSS server
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I'm trying to deploy this exemple using Soap web Service on a JBOSS,
I've the error that the page is not found when I try to access the URL (http://localhost:80/ServiceHelloWS)
Interface ServiceHelloWS :
package com.service.ws;
public interface ServiceHelloWS {
public String sayHello();
}
Implementation :
package com.service.ws;
import javax.ejb.Stateless;
import javax.jws.WebService;
@WebService
@Stateless
public class ServiceHelloWSImpl implements ServiceHelloWS{
@Override
public String sayHello() {
return "Hello";
}
}
Publishing Class:
package com.service.pub;
import javax.xml.ws.Endpoint;
import com.service.ws.*;
public class SoapWSpub {
public static void main(String args) {
Endpoint.publish("http://localhost:80/ServiceHelloWS", new ServiceHelloWSImpl());
}
}
Thanks
soap
add a comment |
I'm trying to deploy this exemple using Soap web Service on a JBOSS,
I've the error that the page is not found when I try to access the URL (http://localhost:80/ServiceHelloWS)
Interface ServiceHelloWS :
package com.service.ws;
public interface ServiceHelloWS {
public String sayHello();
}
Implementation :
package com.service.ws;
import javax.ejb.Stateless;
import javax.jws.WebService;
@WebService
@Stateless
public class ServiceHelloWSImpl implements ServiceHelloWS{
@Override
public String sayHello() {
return "Hello";
}
}
Publishing Class:
package com.service.pub;
import javax.xml.ws.Endpoint;
import com.service.ws.*;
public class SoapWSpub {
public static void main(String args) {
Endpoint.publish("http://localhost:80/ServiceHelloWS", new ServiceHelloWSImpl());
}
}
Thanks
soap
add a comment |
I'm trying to deploy this exemple using Soap web Service on a JBOSS,
I've the error that the page is not found when I try to access the URL (http://localhost:80/ServiceHelloWS)
Interface ServiceHelloWS :
package com.service.ws;
public interface ServiceHelloWS {
public String sayHello();
}
Implementation :
package com.service.ws;
import javax.ejb.Stateless;
import javax.jws.WebService;
@WebService
@Stateless
public class ServiceHelloWSImpl implements ServiceHelloWS{
@Override
public String sayHello() {
return "Hello";
}
}
Publishing Class:
package com.service.pub;
import javax.xml.ws.Endpoint;
import com.service.ws.*;
public class SoapWSpub {
public static void main(String args) {
Endpoint.publish("http://localhost:80/ServiceHelloWS", new ServiceHelloWSImpl());
}
}
Thanks
soap
I'm trying to deploy this exemple using Soap web Service on a JBOSS,
I've the error that the page is not found when I try to access the URL (http://localhost:80/ServiceHelloWS)
Interface ServiceHelloWS :
package com.service.ws;
public interface ServiceHelloWS {
public String sayHello();
}
Implementation :
package com.service.ws;
import javax.ejb.Stateless;
import javax.jws.WebService;
@WebService
@Stateless
public class ServiceHelloWSImpl implements ServiceHelloWS{
@Override
public String sayHello() {
return "Hello";
}
}
Publishing Class:
package com.service.pub;
import javax.xml.ws.Endpoint;
import com.service.ws.*;
public class SoapWSpub {
public static void main(String args) {
Endpoint.publish("http://localhost:80/ServiceHelloWS", new ServiceHelloWSImpl());
}
}
Thanks
soap
soap
edited Nov 22 '18 at 10:12
planetmaker
4,71221730
4,71221730
asked Nov 22 '18 at 10:04
ScNewScNew
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
When you are hitting the url the main method is not getting invoked. This is the reason why you are getting page not found. The solution is to define the SOAP API as a service not in the main method but inside some controller class.
I don't need the publishing class?
– ScNew
Nov 22 '18 at 10:55
If you want to generate the wsdl file then you need to execute the Endpoint.publish statement. So you please shift that statement to an appropriate file e.g a servlet and not the main method since JBoss is an application server and it will not execute the standalone main method.
– Priyadeep Datta
Nov 22 '18 at 11:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53428412%2fsoap-example-on-jboss-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
When you are hitting the url the main method is not getting invoked. This is the reason why you are getting page not found. The solution is to define the SOAP API as a service not in the main method but inside some controller class.
I don't need the publishing class?
– ScNew
Nov 22 '18 at 10:55
If you want to generate the wsdl file then you need to execute the Endpoint.publish statement. So you please shift that statement to an appropriate file e.g a servlet and not the main method since JBoss is an application server and it will not execute the standalone main method.
– Priyadeep Datta
Nov 22 '18 at 11:37
add a comment |
When you are hitting the url the main method is not getting invoked. This is the reason why you are getting page not found. The solution is to define the SOAP API as a service not in the main method but inside some controller class.
I don't need the publishing class?
– ScNew
Nov 22 '18 at 10:55
If you want to generate the wsdl file then you need to execute the Endpoint.publish statement. So you please shift that statement to an appropriate file e.g a servlet and not the main method since JBoss is an application server and it will not execute the standalone main method.
– Priyadeep Datta
Nov 22 '18 at 11:37
add a comment |
When you are hitting the url the main method is not getting invoked. This is the reason why you are getting page not found. The solution is to define the SOAP API as a service not in the main method but inside some controller class.
When you are hitting the url the main method is not getting invoked. This is the reason why you are getting page not found. The solution is to define the SOAP API as a service not in the main method but inside some controller class.
answered Nov 22 '18 at 10:20
Priyadeep DattaPriyadeep Datta
192
192
I don't need the publishing class?
– ScNew
Nov 22 '18 at 10:55
If you want to generate the wsdl file then you need to execute the Endpoint.publish statement. So you please shift that statement to an appropriate file e.g a servlet and not the main method since JBoss is an application server and it will not execute the standalone main method.
– Priyadeep Datta
Nov 22 '18 at 11:37
add a comment |
I don't need the publishing class?
– ScNew
Nov 22 '18 at 10:55
If you want to generate the wsdl file then you need to execute the Endpoint.publish statement. So you please shift that statement to an appropriate file e.g a servlet and not the main method since JBoss is an application server and it will not execute the standalone main method.
– Priyadeep Datta
Nov 22 '18 at 11:37
I don't need the publishing class?
– ScNew
Nov 22 '18 at 10:55
I don't need the publishing class?
– ScNew
Nov 22 '18 at 10:55
If you want to generate the wsdl file then you need to execute the Endpoint.publish statement. So you please shift that statement to an appropriate file e.g a servlet and not the main method since JBoss is an application server and it will not execute the standalone main method.
– Priyadeep Datta
Nov 22 '18 at 11:37
If you want to generate the wsdl file then you need to execute the Endpoint.publish statement. So you please shift that statement to an appropriate file e.g a servlet and not the main method since JBoss is an application server and it will not execute the standalone main method.
– Priyadeep Datta
Nov 22 '18 at 11:37
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53428412%2fsoap-example-on-jboss-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown