Hello there! I'm using JBoss 4.2.0 GA, and after deploying my service it deploys the
EJB SLSB but not the endpoint.
Here's my code:
| @Local
| @Stateless
| @WebServiceProvider(wsdlLocation="META-INF/wsdl/CommandProcessor.wsdl",
| targetNamespace="http://www.xxx/xxx/definitions",
| serviceName="CommandProcessorService",
| portName="CommandProcessorPort")
| @ServiceMode(value=Service.Mode.PAYLOAD)
| public class CommandProcessor implements Provider<Source> {
|
| public Source invoke(Source source) {
| return null;
| }
|
| }
|
| WSDL:
|
| <?xml version="1.0" encoding="UTF-8"
standalone="no"?>
| <wsdl:definitions
|
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
| xmlns:xxx="http://www.xxx/schemas/xxx"
| targetNamespace="http://www.xxx/xxx/definitions"
| xmlns:tns="http://www.xxx/xxx/definitions">
| <wsdl:types>
| <xsd:schema>
| <xsd:import namespace="http://www.xxx/schemas/xxx"
schemaLocation="Command.xsd"/>
| </xsd:schema>
|
| </wsdl:types>
|
| <wsdl:message name="CommandRequest">
| <wsdl:part name="CommandRequest"
element="xxx:anyCommand"></wsdl:part>
| </wsdl:message>
| <wsdl:message name="CommandResponse">
| <wsdl:part name="CommandResponse"
element="xxx:CommandResponse"></wsdl:part>
| </wsdl:message>
|
| <wsdl:portType name="CommandProcessor">
| <wsdl:operation name="process">
| <wsdl:input message="tns:CommandRequest"
name="CommandRequest"></wsdl:input>
| <wsdl:output message="tns:CommandResponse"
name="CommandResponse"></wsdl:output>
| </wsdl:operation>
| </wsdl:portType>
|
| <wsdl:binding name="CommandProcessorBinding"
type="tns:CommandProcessor">
| <soap:binding
transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
| <wsdl:operation name="process">
| <soap:operation soapAction="http://www.xxx/xxx/CommandRequest"/>
| <wsdl:input name="CommandRequest">
| <soap:body use="literal"/>
| </wsdl:input>
| </wsdl:operation>
| </wsdl:binding>
|
| <wsdl:service name="CommandProcessorService">
| <wsdl:port name="CommandProcessorPort"
binding="tns:CommandProcessorBinding">
| <soap:address
location="http://localhost:8080/CommandProcessorService"/>
| </wsdl:port>
| </wsdl:service>
| </wsdl:definitions>
|
|
| XSD:
|
| <?xml version="1.0" encoding="UTF-8"?>
| <xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| targetNamespace="http://xxx/schemas/xxx"
| xmlns:xxx="http://xxx/schemas/xxx"
| elementFormDefault="qualified">
|
| <xsd:element name="CommandRequest">
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element name="command" type="xxx:CommandType"
minOccurs="1" maxOccurs="1"></xsd:element>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
|
| <xsd:element name="anyCommand">
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element name="command"
type="xsd:anySimpleType"></xsd:element>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
|
| <xsd:element name="CommandResponse">
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element name="return"
type="xxx:ResponseCommandType"></xsd:element>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
|
| <xsd:complexType name="CommandType">
| <xsd:sequence>
| <xsd:element name="id"
type="xsd:long"></xsd:element>
| </xsd:sequence>
| </xsd:complexType>
|
| <xsd:complexType name="DHCPCommandType">
| <xsd:complexContent>
| <xsd:extension base="xxx:CommandType">
| <xsd:sequence>
| <xsd:element name="ip"
type="xsd:string"></xsd:element>
| <xsd:element name="server"
type="xsd:string"></xsd:element>
| </xsd:sequence>
| </xsd:extension>
| </xsd:complexContent>
| </xsd:complexType>
|
|
| <xsd:complexType name="CMTSCommandType">
| <xsd:complexContent>
| <xsd:extension base="xxx:CommandType">
| <xsd:sequence>
| <xsd:element name="MAC"
type="xsd:string"></xsd:element>
| </xsd:sequence>
| </xsd:extension>
| </xsd:complexContent>
| </xsd:complexType>
|
| <xsd:complexType name="ResponseCommandType">
| <xsd:sequence>
| <xsd:element name="id"
type="xsd:long"></xsd:element>
| <xsd:element name="message"
type="xsd:string"></xsd:element>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:schema>
|
|
When I access:
http://localhost:8080/jbossws/services, it says there's no service
deployed.
What else am I missing?
Regards
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089438#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...