[JBossWS] - Cannot obtain java type mapping for
by poyge394
can anybody give me a guideline pleass
client code:
| URL url = new URL("http://api.tradera.com/v1/publicservice.asmx?WSDL");
| QName qname = new QName("http://api.tradera.com", "PublicService");
|
| ServiceFactory factory = ServiceFactory.newInstance();
| Service service = factory.createService(url, qname);
|
| PublicServiceSoap pss = (PublicServiceSoap) service.getPort(new QName("http://api.tradera.com", "PublicServiceSoap"), PublicServiceSoap.class);
|
Exception:
| WARN getSOAPAddress, Unprocessed extension element: {http://schemas.xmlsoap.org/wsdl/http/}address
| WARN processBinding, Unsupported binding: {http://schemas.xmlsoap.org/wsdl/http/}binding
| WARN getSOAPAddress, Unprocessed extension element: {http://schemas.xmlsoap.org/wsdl/http/}address
| WARN processBinding, Unsupported binding: {http://schemas.xmlsoap.org/wsdl/http/}binding
| WARN processBinding, Unsupported binding: {http://schemas.xmlsoap.org/wsdl/http/}binding
| WARN processBinding, Unsupported binding: {http://schemas.xmlsoap.org/wsdl/http/}binding
| WARN getBindingByInterfaceName, Multiple WSDL bindings referrence the same interface: {http://api.tradera.com}PublicServiceSoap
| WARN getBindingByInterfaceName, Multiple WSDL bindings referrence the same interface: {http://api.tradera.com}PublicServiceSoap
| WARN getBindingByInterfaceName, Multiple WSDL bindings referrence the same interface: {http://api.tradera.com}PublicServiceSoap
| org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://api.tradera.com}>GetItem
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processDocElement(JAXRPCMetaDataBuilder.java:627)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataDoc(JAXRPCMetaDataBuilder.java:886)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:214)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:216)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:133)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:85)
| at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImpl.java:111)
| at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
| at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
| at se.sj.ipl.tradera.AddItemXmlWebService.testTraderaPublicApiStatic(AddItemXmlWebService.java:58)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
| at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
| at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
| at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
| at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
| at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
| at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055516#4055516
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055516
18Â years, 10Â months
[JBoss Seam] - Re: Loosing information right out of my entity bean....
by g00se24
Here we go:
PS: I'm using a4j extremly hard!!!
| /**
| *
| * @author Dennis Guse
| *
| */
| @Name("users")
| @Scope(ScopeType.SESSION)
| public class UserControl extends Selection implements Serializable {
|
| @Out(required=false)
| public User getSelectedUser() {
| User selected = ((User) super.getSelected());
| if (selected != null) {
| System.out.println(selected.toString());
| }
| return (User) super.getSelected();
| }
|
| @In(required=false)
| public void setSelectedUser(User user) {
| setSelected(user);
| }
|
| public void add() {
| setSelected(new User());
| }
|
| public List<User> getResult() {
| return entityManager.createQuery(getQuery()).getResultList();
| }
| }
|
| <table xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
| <tr>
| <td>
| <h:outputLabel for="client">Client</h:outputLabel>
| </td>
| <td>
| <h:outputText id="client" value="#{selectedUser.client}" />
| </td>
| </tr>
| <tr>
| <td>
| <h:outputLabel for="status">Status</h:outputLabel>
| </td>
| <td>
| <h:outputText id="status" value="#{selectedUser.status}" />
| </td>
| </tr>
| <tr>
| <td>
| <h:outputLabel for="customerGroup">CustomerGroup</h:outputLabel>
| </td>
| <td>
| <h:outputText id="customerGroup" value="#{selectedUser.customerGroup}" />
| </td>
| </tr>
|
| <tr>
| <td>
| <h:outputLabel for="title">Titel</h:outputLabel>
| </td>
| <td>
| <h:outputText id="title" value="#{selectedUser.title}" />
| </td>
| </tr>
| <tr>
| <td>
| <h:outputLabel for="firstName">firstName</h:outputLabel>
| </td>
| <td>
| <h:outputText id="firstName" value="#{selectedUser.firstName}" />
| </td>
| </tr>
| <tr>
| <td>
| <h:outputLabel for="surName">surName</h:outputLabel>
| </td>
| <td>
| <h:outputText id="surName" value="#{selectedUser.surName}" />
| </td>
| </tr>
| <tr>
| <td>
| <h:outputLabel for="language">Language</h:outputLabel>
| </td>
| <td>
| <h:outputText id="language" value="#{selectedUser.language}" />
| </td>
| </tr>
| <tr>
| <td>
| <h:outputLabel for="username">userName</h:outputLabel>
| </td>
| <td>
| <h:outputText id="username" value="#{selectedUser.username}" />
| </td>
| </tr>
| <tr>
| <table>
| <tr>
| <td>
| <h:outputLabel for="street">Street</h:outputLabel>
| </td>
| <td>
| <h:outputText id="street" value="#{selectedUser.address.street}" />
| </td>
| </tr>
| <tr>
| <td>
| <h:outputLabel for="address">StreetNumber</h:outputLabel>
| </td>
| <td>
| <h:outputText id="address" value="#{selectedUser.address.streetNumber}" />
| </td>
| </tr>
| <tr>
| <td>
| <h:outputLabel for="zip">ZIP</h:outputLabel>
| </td>
| <td>
| <h:outputText id="zip" value="#{selectedUser.address.zip}" />
| </td>
|
| </tr>
| <tr>
| <td>
| <h:outputLabel for="town">Town</h:outputLabel>
| </td>
| <td>
| <h:outputText id="town" value="#{selectedUser.address.town}" />
| </td>
| </tr>
| <tr>
| <td>
| <h:outputLabel for="country">Country</h:outputLabel>
| </td>
| <td>
| <h:outputText id="country" value="#{selectedUser.address.country}" />
| </td>
| </tr>
| </table>
| </tr>
| </table>
|
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
| template="/administration/template.xhtml">
|
| <ui:define name="control">
| <a4j:commandLink value="Add" action="#{users.add}" oncomplete="javascript:Richfaces.showModalPanel('user',{width:450, top:200})" reRender="selected, user" />
| <h:inputText id="input" value="#{users.search}">
| <a4j:support event="onkeyup" reRender="result" requestDelay="100" ajaxSingle="true" />
| </h:inputText>
| </ui:define>
|
| <ui:define name="result">
| <rich:dataTable id="table" value="#{users.result}" var="item">
| <h:column>
| <h:outputText value="#{item.title} #{item.firstName} #{item.surName}">
| <a4j:support event="onclick" action="#{users.select}" reRender="selected, user" />
| </h:outputText>
| </h:column>
| <h:column>
| <h:outputText value="#{item.status}" />
| </h:column>
| <h:column>
| <a4j:commandButton value="Delete" action="#{users.delete}" reRender="selected, result, user" />
| </h:column>
| </rich:dataTable>
| </ui:define>
|
| <ui:define name="selected">
| <rich:tabPanel switchType="ajax" rendered="#{selectedUser != null}">
|
| <rich:tab label="Data">
| <a href="javascript:Richfaces.showModalPanel('user',{width:450, top:200})">
| Edit
| </a>
| <ui:include src="/objects/user.xhtml" />
| </rich:tab>
|
| <rich:tab label="Subscription">
| <h:dataTable value="#{selectedUser.subscriptions}" var="item" rendered="#{selectedUser.subscriptions != null}">
| <rich:column>
| <h:outputText value="#{item}" />
| </rich:column>
| </h:dataTable>
| </rich:tab>
|
| <rich:tab label="SubChannels">
|
| <ui:include src="/objects/subchannels.xhtml"/>
|
| </rich:tab>
|
| </rich:tabPanel>
|
| </ui:define>
|
| </ui:composition>
|
| The template for this page is easy nothing special, only some panels...
|
If i visit the /objects/user.xhtml direct, i can watch closely.
If a user gets selected I can see all attributes, but If I do any action on the page I lose the data, but only the data for the manytoone relations...
Thanks in advance!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055513#4055513
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055513
18Â years, 10Â months
[JBoss Seam] - Re: Pageflow action state
by petemuir
"KnisterPeter" wrote : is there something like a pageflow action state? I need a state where I could end the current conversation and not the pageflow and afterwards execute another method.
No, a conversation and a pageflow are the same length
anonymous wrote : My usecase is the following: when a new user registers at our service he should be logged in automatically. The pageflow must end before this automatic login, because the current transaction must be commited to have the user visible in db for the seam identity.login action method.
I don't see why these two things are related (transaction commiting, pageflow ending). Call em.flush(), call identity.login(), then end the pageflow, transitioning to the users home page.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055509#4055509
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055509
18Â years, 10Â months