<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Create a Simple Webservice - but Failed
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/mavinatic">G K</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/607251#607251">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello Community,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>i am started to create a simple webservice and i wanted to send a JavaBean but when I want to connect with my client I get this Exception:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-java">org.jboss.ws.WSException: Cannot obtain java type mapping <font color="navy"><b>for</b></font>: <font color="navy">{</font>http:<font color="darkgreen">//controller.coreservices.openflow.org/}account</font>
&#160;&#160;&#160; at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildInputParameter(JAXRPCMetaDataBuilder.java:264)
&#160;&#160;&#160; at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataRpc(JAXRPCMetaDataBuilder.java:564)
&#160;&#160;&#160; at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:208)
&#160;&#160;&#160; at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:221)
&#160;&#160;&#160; at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:133)
&#160;&#160;&#160; at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:85)
&#160;&#160;&#160; at org.jboss.ws.core.jaxrpc.client.ServiceImpl.&lt;init&gt;(ServiceImpl.java:109)
&#160;&#160;&#160; at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:155)
&#160;&#160;&#160; at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:126)
&#160;&#160;&#160; at org.openflow.api.general.ConnectionFactory.setConfiguration(ConnectionFactory.java:28)
&#160;&#160;&#160; at org.openflow.api.Impl.OpenFlowFactoryImpl.getServer(OpenFlowFactoryImpl.java:30)
&#160;&#160;&#160; at Main.main(Main.java:30)
Exception in thread <font color="red">"main"</font> java.lang.NullPointerException
&#160;&#160;&#160; at org.openflow.api.Impl.ServerImpl.login(ServerImpl.java:20)
&#160;&#160;&#160; at Main.main(Main.java:31)
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>What kind of mapping is it? How can i map it?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here is my WSDL: </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">&lt;definitions name="ControllerServiceService" targetNamespace="http://controller.coreservices.openflow.org/"&gt;&lt;types&gt;&lt;xs:schema targetNamespace="http://controller.coreservices.openflow.org/" version="1.0"&gt;&lt;xs:complexType name="account"&gt;&lt;xs:sequence&gt;&lt;xs:element minOccurs="0" name="password" type="xs:string"/&gt;&lt;xs:element minOccurs="0" name="userid" type="xs:string"/&gt;&lt;/xs:sequence&gt;&lt;/xs:complexType&gt;&lt;xs:complexType name="session"&gt;&lt;xs:sequence&gt;&lt;xs:element minOccurs="0" name="sessionId" type="xs:string"/&gt;&lt;xs:element minOccurs="0" name="userId" type="xs:string"/&gt;&lt;xs:element minOccurs="0" name="userRole" type="xs:string"/&gt;&lt;/xs:sequence&gt;&lt;/xs:complexType&gt;&lt;xs:complexType name="role"&gt;&lt;xs:sequence&gt;&lt;xs:element minOccurs="0" name="roleId" type="xs:string"/&gt;&lt;xs:element minOccurs="0" name="roleName" type="xs:string"/&gt;&lt;xs:element minOccurs="0" name="userId" type="xs:string"/&gt;&lt;/xs:sequence&gt;&lt;/xs:complexType&gt;&lt;xs:complexType final="#all" name="roleArray"&gt;&lt;xs:sequence&gt;&lt;xs:element maxOccurs="unbounded" minOccurs="0" name="item" nillable="true" type="tns:role"/&gt;&lt;/xs:sequence&gt;&lt;/xs:complexType&gt;&lt;/xs:schema&gt;&lt;xs:schema targetNamespace="http://jaxb.dev.java.net/array" version="1.0"&gt;&lt;xs:complexType final="#all" name="stringArray"&gt;&lt;xs:sequence&gt;&lt;xs:element maxOccurs="unbounded" minOccurs="0" name="item" nillable="true" type="xs:string"/&gt;&lt;/xs:sequence&gt;&lt;/xs:complexType&gt;&lt;/xs:schema&gt;&lt;/types&gt;&lt;message name="IController_addAccount"&gt;&lt;part name="arg0" type="xsd:string"/&gt;&lt;part name="arg1" type="xsd:string"/&gt;&lt;/message&gt;&lt;message name="IController_createSession"&gt;&lt;part name="arg0" type="tns:account"/&gt;&lt;/message&gt;&lt;message name="IController_getRoles"/&gt;&lt;message name="IController_updateSession"&gt;&lt;part name="arg0" type="tns:session"/&gt;&lt;/message&gt;&lt;message name="IController_loginResponse"&gt;&lt;part name="return" type="tns:account"/&gt;&lt;/message&gt;&lt;message name="IController_deleteAccountResponse"/&gt;&lt;message name="IController_deleteAccount"&gt;&lt;part name="arg0" type="xsd:string"/&gt;&lt;/message&gt;&lt;message name="IController_updateSessionResponse"/&gt;&lt;message name="IController_createRoleResponse"/&gt;&lt;message name="IController_deleteSession"&gt;&lt;part name="arg0" type="tns:session"/&gt;&lt;/message&gt;&lt;message name="IController_createRole"&gt;&lt;part name="arg0" type="xsd:string"/&gt;&lt;/message&gt;&lt;message name="IController_getRole"&gt;&lt;part name="arg0" type="xsd:string"/&gt;&lt;/message&gt;&lt;message name="IController_getRoleResponse"&gt;&lt;part name="return" type="tns:role"/&gt;&lt;/message&gt;&lt;message name="IController_listUsers"/&gt;&lt;message name="IController_logout"&gt;&lt;part name="arg0" type="tns:session"/&gt;&lt;/message&gt;&lt;message name="IController_login"&gt;&lt;part name="arg0" type="xsd:string"/&gt;&lt;part name="arg1" type="xsd:string"/&gt;&lt;/message&gt;&lt;message name="IController_addAccountResponse"/&gt;&lt;message name="IController_deleteSessionResponse"/&gt;&lt;message name="IController_createSessionResponse"&gt;&lt;part name="return" type="tns:session"/&gt;&lt;/message&gt;&lt;message name="IController_getRolesResponse"&gt;&lt;part name="return" type="tns:roleArray"/&gt;&lt;/message&gt;&lt;message name="IController_listUsersResponse"&gt;&lt;part name="return" type="ns1:stringArray"/&gt;&lt;/message&gt;&lt;message name="IController_logoutResponse"/&gt;&lt;portType name="IController"&gt;&lt;operation name="addAccount" parameterOrder="arg0 arg1"&gt;&lt;input message="tns:IController_addAccount"/&gt;&lt;output message="tns:IController_addAccountResponse"/&gt;&lt;/operation&gt;&lt;operation name="createRole" parameterOrder="arg0"&gt;&lt;input message="tns:IController_createRole"/&gt;&lt;output message="tns:IController_createRoleResponse"/&gt;&lt;/operation&gt;&lt;operation name="createSession" parameterOrder="arg0"&gt;&lt;input message="tns:IController_createSession"/&gt;&lt;output message="tns:IController_createSessionResponse"/&gt;&lt;/operation&gt;&lt;operation name="deleteAccount" parameterOrder="arg0"&gt;&lt;input message="tns:IController_deleteAccount"/&gt;&lt;output message="tns:IController_deleteAccountResponse"/&gt;&lt;/operation&gt;&lt;operation name="deleteSession" parameterOrder="arg0"&gt;&lt;input message="tns:IController_deleteSession"/&gt;&lt;output message="tns:IController_deleteSessionResponse"/&gt;&lt;/operation&gt;&lt;operation name="getRole" parameterOrder="arg0"&gt;&lt;input message="tns:IController_getRole"/&gt;&lt;output message="tns:IController_getRoleResponse"/&gt;&lt;/operation&gt;&lt;operation name="getRoles"&gt;&lt;input message="tns:IController_getRoles"/&gt;&lt;output message="tns:IController_getRolesResponse"/&gt;&lt;/operation&gt;&lt;operation name="listUsers"&gt;&lt;input message="tns:IController_listUsers"/&gt;&lt;output message="tns:IController_listUsersResponse"/&gt;&lt;/operation&gt;&lt;operation name="login" parameterOrder="arg0 arg1"&gt;&lt;input message="tns:IController_login"/&gt;&lt;output message="tns:IController_loginResponse"/&gt;&lt;/operation&gt;&lt;operation name="logout" parameterOrder="arg0"&gt;&lt;input message="tns:IController_logout"/&gt;&lt;output message="tns:IController_logoutResponse"/&gt;&lt;/operation&gt;&lt;operation name="updateSession" parameterOrder="arg0"&gt;&lt;input message="tns:IController_updateSession"/&gt;&lt;output message="tns:IController_updateSessionResponse"/&gt;&lt;/operation&gt;&lt;/portType&gt;&lt;binding name="IControllerBinding" type="tns:IController"&gt;&lt;soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/&gt;&lt;operation name="addAccount"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="createRole"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="createSession"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="deleteAccount"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="deleteSession"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="getRole"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="getRoles"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="listUsers"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="login"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="logout"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;operation name="updateSession"&gt;&lt;soap:operation soapAction=""/&gt;&lt;input&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/input&gt;&lt;output&gt;&lt;soap:body namespace="http://controller.coreservices.openflow.org/" use="literal"/&gt;&lt;/output&gt;&lt;/operation&gt;&lt;/binding&gt;&lt;service name="ControllerServiceService"&gt;&lt;port binding="tns:IControllerBinding" name="ControllerServicePort"&gt;&lt;soap:address location="http://127.0.0.1:8080/AccountService/ControllerService"/&gt;&lt;/port&gt;&lt;/service&gt;&lt;/definitions&gt;</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Best regards</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>george</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/607251#607251">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>