-
1. Re: wscompile - Restricted base='xsd:string' mapping issue
javaslag Mar 10, 2006 5:37 AM (in response to javaslag)(doh... hopefully this will include the soap fragments)
I'm attempting to generate server side artifacs from an established rpc/literal WSDL file using jwsdp2.0 wscompile and I'm hitting an issue deploying a simpleType that is a restircted length xsd:string.
From the wsdl...
...<simpleType name="my_id"> <restriction base="string"> <maxLength value="20"/> </restriction> </simpleType>
...
And on deployment to JBoss 4.0.4RC1...
2006/03/10 09:26:15.524 WARN JavaWsdlMapping Cannot find jaxrpc-mapping for type: {http://mynamespace}my_id
2006/03/10 09:26:16.067 WARN TypeMappingDescription Class not found: mynamespace.my_id
Note that wscompile does not generate a "my_id.java" file, but references it as a java.lang.String. Also, not entry exists in the jaxrpc-mapping.xml for my_id type.
I can confirm there are no namespace issues as all other artifacts are generated and serialising correctly. Also, other restricted simpleTypes are being used: including the standard enumeration pattern.
This also fails...<simpleType name="my_id"> <restriction base="string"/> </simpleType>
Without removing the restriction in the WSDL, what else can I do?
Thanks in advance
James -
2. Re: wscompile - Restricted base='xsd:string' mapping issue
javaslag Mar 14, 2006 4:33 AM (in response to javaslag)Just to point out that wscompile appears to be adhering to its spec...
http://forum.java.sun.com/thread.jspa?threadID=716435
So can I state that this is a JBoss issue? -
4. Re: wscompile - Restricted base='xsd:string' mapping issue
mnsharif Nov 12, 2006 11:22 AM (in response to javaslag)The bug id pointed by thomas (JBWS-810) refrences JBWS-710 which is listed as to be fixed in jboss4.0.4GA.
But, i am still getting this error. Has anyone got a clue whats the status of this? Has it been fixed or not?
mnsharif -
5. Re: wscompile - Restricted base='xsd:string' mapping issue
zarzar Nov 12, 2006 5:15 PM (in response to javaslag)I'm also having the same simple type restriction problem on jboss-4.0.5.GA with code generated by wstools on a doc/literal wsdl.
I found an article on the wiki on annotations.
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossXB_JBXBAnnotations
The "jbxb:value" section shows how to specify you own marshalling and unmarshalling code. But I'm not sure if this is implemented yet. It didn't work for me. -
6. Re: wscompile - Restricted base='xsd:string' mapping issue
thomas.diesler Nov 16, 2006 5:22 AM (in response to javaslag)