Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Sarvotham Pai

+ Follow
since Apr 25, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sarvotham Pai


I am new to webservice and trying sample webservice using JAX-WS.
Following is my pom.xml, which is calling wsgen.




My impl class is

import javax.jws.WebMethod;
import javax.jws.WebService;

public class Hello
private String message = new String("Hello, ");

public String sayHello(String name) {
return message + name + ".";


following is the wsdl generated

<definitions targetNamespace="" name="HelloService" xmlns:tns="" xmlns:xsd="" xmlns:soap="" xmlns="">
<xsd:import namespace="" schemaLocation="HelloService_schema1.xsd"/>
<message name="sayHello">
<part name="parameters" element="tns:sayHello"/>
<message name="sayHelloResponse">
<part name="parameters" element="tns:sayHelloResponse"/>
<portType name="Hello">
<operation name="sayHello">
<input message="tns:sayHello"/>
<output message="tns:sayHelloResponse"/>
<binding name="HelloPortBinding" type="tns:Hello">
<soap:binding transport="" style="document"/>
<operation name="sayHello">
<soap:operation soapAction=""/>
<soap:body use="literal"/>
<soap:body use="literal"/>
<service name="HelloService">
<port name="HelloPort" binding="tns:HelloPortBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/>

wsdl is generated in a different directory and is not got included in the .war file.

I deployed the .war file in weblogic and tried to access the wsdl and i am not able to access the same(http://localhost:8001/MPS-AXIS/HelloService?wsdl).and also i am not able to run the wsimport for the same reason.

What changes i need to do inorder to access the wsdl using web browser after deploying the .war file, so that i will be able to call wsimport.
11 years ago