[jboss-user] [JBossWS] - Re: Cannot obtain java type mapping for: {http://org.mazurek
tim.cockle
do-not-reply at jboss.com
Mon Sep 18 11:49:32 EDT 2006
I am having the same problem with J2EE 1.4
It works fine for primative types but nothing else. Also if I try document/literal I get the same thing.
[java] org.jboss.ws.WSException: Cannot obtain java type mapping for: {www.aware-services.co.uk/ws/hello/types}sayHello
my wsdl:
?
?
?
?
?
?
?
?
?
?
?
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
?
<soap:operation soapAction=""/>
?
<soap:body use="literal"/>
?
<soap:body use="literal"/>
?
?
<soap:address location="http://Monkey:8080/hello/Hello"/>
my mapping:
<?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
<package-mapping>
<package-type>myejbws</package-type>
www.aware-services.co.uk/ws/hello/types
</package-mapping>
<java-xml-type-mapping>
<java-type>myejbws.HelloEndpoint_sayHello_RequestStruct</java-type>
<root-type-qname xmlns:typeNS='www.aware-services.co.uk/ws/hello/types'>typeNS:sayHello</root-type-qname>
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>string_1</java-variable-name>
<xml-element-name>String_1</xml-element-name>
</variable-mapping>
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>myejbws.HelloEndpoint_sayHello_ResponseStruct</java-type>
<root-type-qname xmlns:typeNS='www.aware-services.co.uk/ws/hello/types'>typeNS:sayHelloResponse</root-type-qname>
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>result</java-variable-name>
<xml-element-name>result</xml-element-name>
</variable-mapping>
</java-xml-type-mapping>
<service-interface-mapping>
<service-interface>myejbws.HelloService</service-interface>
<wsdl-service-name xmlns:serviceNS='www.aware-services.co.uk/ws/hello'>serviceNS:HelloService</wsdl-service-name>
<port-mapping>
<port-name>HelloEndpointPort</port-name>
<java-port-name>HelloEndpointPort</java-port-name>
</port-mapping>
</service-interface-mapping>
<service-endpoint-interface-mapping>
<service-endpoint-interface>myejbws.HelloEndpoint</service-endpoint-interface>
<wsdl-port-type xmlns:portTypeNS='www.aware-services.co.uk/ws/hello'>portTypeNS:HelloEndpoint</wsdl-port-type>
<wsdl-binding xmlns:bindingNS='www.aware-services.co.uk/ws/hello'>bindingNS:HelloEndpointBinding</wsdl-binding>
<service-endpoint-method-mapping>
<java-method-name>sayHello</java-method-name>
<wsdl-operation>sayHello</wsdl-operation>
<wrapped-element/>
<method-param-parts-mapping>
<param-position>0</param-position>
<param-type>java.lang.String</param-type>
<wsdl-message-mapping>
<wsdl-message xmlns:wsdlMsgNS='www.aware-services.co.uk/ws/hello'>wsdlMsgNS:HelloEndpoint_sayHello</wsdl-message>
<wsdl-message-part-name>String_1</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
<method-return-value>java.lang.String</method-return-value>
<wsdl-message xmlns:wsdlMsgNS='www.aware-services.co.uk/ws/hello'>wsdlMsgNS:HelloEndpoint_sayHelloResponse</wsdl-message>
<wsdl-message-part-name>result</wsdl-message-part-name>
</wsdl-return-value-mapping>
</service-endpoint-method-mapping>
</service-endpoint-interface-mapping>
</java-wsdl-mapping>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972349#3972349
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972349
More information about the jboss-user
mailing list