[JBossWS] - Re: Mapping Problems
by elcapitan
Thanks for the reply. I seem to have solved my problem by integrating the wstools-generated stubs into the client and placing the jaxrpc-mapping.xml file in the classpath.
I have to say, I found it very difficult to locate the information you specified in the user-guide - in particular, I had difficulty working out which methods applied to which releases of JBoss, and which EJB version. As I look through Chapter 12 of the JBoss 4 AS Guide, none of this is clearly spelled out - the jaxrpc-mapping.xml file is mentioned tangentially in a couple of code fragments, and nowhere beyond that. The JBossWS user guide isn't really any easier to find information in.
I'm not suggesting that the information isn't there, at least in some form - however, as a relatively experienced Java developer with a higher-than-average level of skill in English comprehension, I'm concerned that many other people will have similar problems in locating it. Is a documentation overhaul in the pipe at some stage?
Let me know if I can help you out with this. :) Thanks again for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993631#3993631
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993631
18 years, 9 months
[JBossWS] - Webtools generated WSDL fail to deploy
by pshankar
Here is the service that returns the List generated using the wstools
<?xml version="1.0" encoding="UTF-8"?>
| <wsdl:definitions targetNamespace="http://DefaultNamespace" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://DefaultNamespace" xmlns:intf="http://DefaultNamespace" xmlns:tns2="http://www.w3.org/1999/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <!--WSDL created by Apache Axis version: 1.2alpha
| Built on Dec 01, 2003 (04:33:24 EST)-->
| <wsdl:types>
| <schema targetNamespace="http://DefaultNamespace" xmlns="http://www.w3.org/2001/XMLSchema">
| <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
| <complexType name="ArrayOf_tns2_anyType">
| <complexContent>
| <restriction base="soapenc:Array">
| <attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:anyType[]"/>
| </restriction>
| </complexContent>
| </complexType>
| </schema>
| </wsdl:types>
|
| <wsdl:message name="setNameRequest">
|
| <wsdl:part name="in0" type="xsd:string"/>
|
| </wsdl:message>
|
| <wsdl:message name="listConfigurationNameResponse">
|
| <wsdl:part name="listConfigurationNameReturn" type="impl:ArrayOf_tns2_anyType"/>
|
| </wsdl:message>
|
| <wsdl:message name="getNameRequest">
|
| </wsdl:message>
|
| <wsdl:message name="listConfigurationNameRequest">
|
| <wsdl:part name="in0" type="xsd:string"/>
|
| </wsdl:message>
|
| <wsdl:message name="setNameResponse">
|
| </wsdl:message>
|
| <wsdl:message name="getNameResponse">
|
| <wsdl:part name="getNameReturn" type="xsd:string"/>
|
| </wsdl:message>
|
| <wsdl:portType name="MySpringService">
|
| <wsdl:operation name="listConfigurationName" parameterOrder="in0">
|
| <wsdl:input message="impl:listConfigurationNameRequest" name="listConfigurationNameRequest"/>
|
| <wsdl:output message="impl:listConfigurationNameResponse" name="listConfigurationNameResponse"/>
|
| </wsdl:operation>
|
| <wsdl:operation name="getName">
|
| <wsdl:input message="impl:getNameRequest" name="getNameRequest"/>
|
| <wsdl:output message="impl:getNameResponse" name="getNameResponse"/>
|
| </wsdl:operation>
|
| <wsdl:operation name="setName" parameterOrder="in0">
|
| <wsdl:input message="impl:setNameRequest" name="setNameRequest"/>
|
| <wsdl:output message="impl:setNameResponse" name="setNameResponse"/>
|
| </wsdl:operation>
|
| </wsdl:portType>
|
| <wsdl:binding name="MySpringServiceSoapBinding" type="impl:MySpringService">
|
| <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
|
| <wsdl:operation name="listConfigurationName">
|
| <wsdlsoap:operation soapAction=""/>
|
| <wsdl:input name="listConfigurationNameRequest">
|
| <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/>
|
| </wsdl:input>
|
| <wsdl:output name="listConfigurationNameResponse">
|
| <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/>
|
| </wsdl:output>
|
| </wsdl:operation>
|
| <wsdl:operation name="getName">
|
| <wsdlsoap:operation soapAction=""/>
|
| <wsdl:input name="getNameRequest">
|
| <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/>
|
| </wsdl:input>
|
| <wsdl:output name="getNameResponse">
|
| <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/>
|
| </wsdl:output>
|
| </wsdl:operation>
|
| <wsdl:operation name="setName">
|
| <wsdlsoap:operation soapAction=""/>
|
| <wsdl:input name="setNameRequest">
|
| <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/>
|
| </wsdl:input>
|
| <wsdl:output name="setNameResponse">
|
| <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/>
|
| </wsdl:output>
|
| </wsdl:operation>
|
| </wsdl:binding>
|
| <wsdl:service name="MySpringServiceService">
|
| <wsdl:port binding="impl:MySpringServiceSoapBinding" name="MySpringService">
|
| <wsdlsoap:address location="http://localhost:8080/MySpringService"/>
|
| </wsdl:port>
|
| </wsdl:service>
|
| </wsdl:definitions>
|
Here is the exception when I try to deploy
11:34:24,910 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.5.GA/server/default/deploy/
| org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://DefaultNamespace}ArrayOf_tns2_anyType
| at org.jboss.ws.deployment.JSR109MetaDataBuilder.buildParameterMetaDataRpc(JSR109MetaDataBuilder.java
| at org.jboss.ws.deployment.JSR109MetaDataBuilder.setupOperationsFromWSDL(JSR109MetaDataBuilder.java:1
| at org.jboss.ws.deployment.JSR109ServerMetaDataBuilder.buildMetaData(JSR109ServerMetaDataBuilder.java
| at org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:78)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
| at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(DeployerInterceptorJSE.java:74)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993544#3993544
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993544
18 years, 9 months
[JBossWS] - Re: SOAP Error- DefaultNamespace doesnot contain operation m
by pshankar
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=false
My 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?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993435#3993435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993435
18 years, 9 months