Thank you Gavin, that was the piece of the puzzle I was missing.
My final configuration in WEB-INF/pages.xml looks like:
<page view-id="/virtual/path/to/alias_file.xhtml" action="">
| <navigation>
| <rule>
| <render view-id="/real/path/to/real_file.xhtml"/>
| <!-- or redirect -->
| </rule>
| </navigation>
| </page>
When you create a granular configuration file like [page_name].page.xml the view-id attribute does not seem to have any effect. The view-id appears to be determined by the path and filename of the [page_name].pages.xml file. I presume this is the expected behavior?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032535#4032535
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032535
I am implementing a WS client with JBossWS to access a third-party web service, one of the service operations takes a xsd:anyType type as the parameter, and it gets mapped to SOAPElement in the wstools generated code. When I invoke the service, I got this exception:
javax.xml.rpc.JAXRPCException: Cannot obtain serializer factory for: [xmlType={http://www.w3.org/2001/XMLSchema}anyType,javaType=interface javax.xml.soap.SOAPElement]
This article (http://wiki.jboss.org/wiki/Wiki.jsp?page=WS4EETypeMapping) talks about how to add type mappings for service endpoint, not the WS client. But anyway, I tried to add file ws4ee-deployment.xml to my client's META-INF folder with following mapping:
<typeMapping qname="xsd:anyType"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
serializer="org.jboss.ws.jaxrpc.encoding.ElementSerializerFactory" deserializer="org.jboss.ws.jaxrpc.encoding.ElementDeserializerFactory"
type="java:javax.xml.soap.SOAPElement"
encodingStyle="" />
and it didn't work.
Does anyone know a solution to this issue?
Much thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032531#4032531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032531