I have the log file showing the following information
UnifiedMetaData:
securityDomain: null
ServiceMetaData:
name={http://DefaultNamespace}MySpringServiceService
wsdName=MySpringService
wsdlFile=WEB-INF/wsdl/myspringservice.wsdl
jaxrpcFile=WEB-INF/jaxrpc-mapping.xml
publishLocation=null
properties=null
TypesMetaData:
ServerEndpointMetaData:
name={http://DefaultNamespace}MySpringService
id=jboss.ws:context=MySpringService,endpoint=MySpringServiceServlet
address=http://MSN17089C:8080/MySpringService/
linkName=MySpringServiceServlet
implName=MySpringServiceImplementation
seiName=MySpringService
annotated=false
portComponentName=MySpringService
contextRoot=/MySpringService
urlPattern=/
configFile=null
configName=null
authMethod=null
transportGuarantee=null
properties=null
OperationMetaData:
xmlName={http://DefaultNamespace}getName
javaName=getName
style=rpc/literal
oneWay=false
soapAction=
ReturnMetaData:
xmlName=getNameReturn
xmlType={http://www.w3.org/2001/XMLSchema}string
javaType=java.lang.String
mode=OUT
inHeader=false
OperationMetaData:
xmlName={http://DefaultNamespace}setName
javaName=setName
style=rpc/literal
oneWay=false
soapAction=
ParameterMetaData:
xmlName=in0
xmlType={http://www.w3.org/2001/XMLSchema}string
javaType=java.lang.String
mode=IN
inHeader=falseMy Client use the following
private static String endpoint = "http://localhost:8080/MySpringService/";
private static String qnameService = "MySpringService";
private static String qnamePort = "MySpringService";
private static String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
private static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
private static String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
public static void main(String[] args) {
System.out.println("Endpoint address = " + endpoint);
try {
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(new QName(qnameService));
QName port = new QName(qnamePort);
Call call = service.createCall(port);
call.setTargetEndpointAddress(endpoint);
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
call.setReturnType(QNAME_TYPE_STRING);Can you suggest what need to be changed?