[JBoss-user] [JBossWS] - Re: wscompile/wsdl/ws4ee questions...
HI, I am facing the similar problem. I am using String as inout and out put param My Jaxrpx-mapping.xml looks like | ?xml version=1.0 encoding=UTF-8? | java-wsdl-mapping xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:impl=http://www.skandia.co.uk/wrap/standingdata; xmlns:port=http://www.skandia.co.uk/wrap/portfolio; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee | http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd; version=1.1 | package-mapping | package-typeuk.co.skandia.wraptools.investment/package-type | namespaceURIhttp://www.skandia.co.uk/wrap/InvestmentService/namespaceURI | /package-mapping | package-mapping | package-typeuk.co.skandia.wraptools.riskassessment/package-type | namespaceURIhttp://www.skandia.co.uk/wrap/RiskAssessmentService/namespaceURI | /package-mapping | java-xml-type-mapping | java-typejava.lang.String/java-type | root-type-qnameimpl:getAvailableFundFiltersReturn/root-type-qname | qname-scopeelement/qname-scope | /java-xml-type-mapping | java-xml-type-mapping | java-typejava.lang.String/java-type | root-type-qnameport:getRiskQuestionnaireReturn/root-type-qname | qname-scopeelement/qname-scope | /java-xml-type-mapping | java-xml-type-mapping | java-typejava.lang.String/java-type | root-type-qnameport:in0/root-type-qname | qname-scopeelement/qname-scope | /java-xml-type-mapping | /java-wsdl-mapping | i have generated WSDl using Axis Java2Wsdl. | ?xml version=1.0 encoding=UTF-8? | wsdl:definitions targetNamespace=http://www.skandia.co.uk/wrap/InvestmentService; xmlns:impl=http://www.skandia.co.uk/wrap/InvestmentService; xmlns:intf=http://www.skandia.co.uk/wrap/InvestmentService; xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns=http://schemas.xmlsoap.org/wsdl/; | wsdl:types | schema xmlns=http://www.w3.org/2001/XMLSchema; targetNamespace=http://www.skandia.co.uk/wrap/InvestmentService; |element name=in0 type=xsd:string/ |element name=saveReturn type=xsd:string/ |element name=in0 type=xsd:string/ |element name=deleteReturn type=xsd:string/ |element name=in0 type=xsd:string/ |element name=getAvailableFundFiltersReturn type=xsd:string/ |element name=in0 type=xsd:string/ |element name=in0 type=xsd:string/ |element name=getFundListReturn type=xsd:string/ |element name=in0 type=xsd:string/ |element name=getFundDetailsReturn type=xsd:string/ |element name=in0 type=xsd:string/ |element name=getFundPerformanceReturn type=xsd:string/ |element name=in0 type=xsd:string/ |element name=getProductCategoriesAndFundRangesReturn type=xsd:string/ |element name=in0 type=xsd:string/ |element name=getAssetClassesReturn type=xsd:string/ |element name=in0 type=xsd:string/ |element name=getSectorPerformanceReturn type=xsd:string/ | /schema | /wsdl:types | |wsdl:message name=getAvailableFundFiltersRequest | | wsdl:part name=in0 element=impl:in0/ | |/wsdl:message | |wsdl:message name=getAssetClassesRequest | | wsdl:part name=in0 element=impl:in0/ | |/wsdl:message | |wsdl:message name=getProductCategoriesAndFundRangesRequest | | wsdl:part name=in0 element=impl:in0/ | |/wsdl:message | |wsdl:message name=getFundListResponse | | wsdl:part name=getFundListReturn element=impl:getFundListReturn/ | |/wsdl:message | |wsdl:message name=getSectorPerformanceResponse | | wsdl:part name=getSectorPerformanceReturn element=impl:getSectorPerformanceReturn/ | |/wsdl:message | |wsdl:message name=getFundPerformanceRequest | | wsdl:part name=in0 element=impl:in0/ | |/wsdl:message | |wsdl:message name=setAvailableFundFiltersRequest | | wsdl:part name=in0 element=impl:in0/ | |/wsdl:message | |wsdl:message name=getFundListRequest | | wsdl:part name=in0 element=impl:in0/ | |/wsdl:message | |wsdl:message name=deleteResponse | | wsdl:part name=deleteReturn element=impl:deleteReturn/ | |/wsdl:message | |wsdl:message name=saveResponse | | wsdl:part name=saveReturn element=impl:saveReturn/ | |/wsdl:message | |wsdl:message name=getAvailableFundFiltersResponse | | wsdl:part name=getAvailableFundFiltersReturn
[JBoss-user] [JBossWS] - Re: wscompile/wsdl/ws4ee questions...
hi kanno, i've the same problem as u. i tried -gen:server with wscompile and package all xxx_Struct class in .war file(doesn't include ws4ee-deployment.xml). Anything look well i can call web service but return type become xxx_ReponseStruct (cause it's defined in mapping file). so ClassCastException occurs while i try to cast it into my custom type. i think this approach will work in one way communication (call void method). Another way i'm trying to do is override custom-mapping file by ws4ee-deployment.xml (i wish it help me to complete my work...). i'll post it if it success... Ken View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3863190#3863190 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3863190 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: wscompile/wsdl/ws4ee questions...
Ok, after going through all the examples, I sorta see what's going on with the assorted mapping files, etc. Since apparently the automatically generated wsdl creates a wsdl that validates a message of | getProfiles | String_1*BLAH*/String_1 | /getProfiles | I can't just use this type mapping | typeMapping qname='ns1:getProfiles' xmlns:ns1='http://namespace' | type='java:java.lang.String' | serializer='org.apache.axis.encoding.ser.SimpleSerializerFactory' | deserializer='org.apache.axis.encoding.ser.SimpleDeserializerFactory' | encodingStyle='' | /typeMapping | because the value between the tags isn't a string type. Is it standard to just edit the wsdl file or to edit the typemappings via the ws4ee-deployment file? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3863202#3863202 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3863202 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user