...
Name | Value |
---|---|
endpointName | The endpoint name this service is implementing, it maps to the wsdl:port@name. In the format of "ns:ENDPOINT_NAME" where ns is a namespace prefix valid at this scope. |
publish | Whether the endpoint should be published now, or whether it will be published at a later point. |
serviceName | The service name this service is implementing, it maps to the wsdl:service@name. In the format of "ns:SERVICE_NAME" where ns is a namespace prefix valid at this scope. |
wsdlLocation | The location of the WSDL. Can be on the classpath, file system, or be hosted remotely. |
bindingUri | The URI, or ID, of the message binding for the endpoint to use. For SOAP the binding URI(ID) is specified by the JAX-WS specification. For other message bindings the URI is the namespace of the WSDL extensions used to specify the binding. |
address | The service publish address |
bus | The bus name that will be used in the jaxws endpoint. |
implementor | The implementor of jaxws endpoint. You can specify the implementor class name here, or just the ref bean name in the format of "#REF_BEAN_NAME" |
implementorClass | The implementor class name, it is really useful when you specify the implementor with the ref bean which is wrapped by using Spring AOP |
createdFromAPI | This indicates that the endpoint bean was already created using jaxws API's thus at runtime when parsing the bean spring can use these values rather than the default ones. |
It also supports many child elements:
...
Name | Type | Description |
---|---|---|
id | String | A unique identified for the client, which is how other beans in the context will reference it |
address | URL | The URL to connect to in order to invoke the service |
serviceClass | Class | The fully-qualified name of the interface that the bean should implement (typically, same as the service interface used on the server side) |
serviceName | QName | The name of the service to invoke, if this address/WSDL hosts several. It maps to the wsdl:service@name. In the format of "ns:SERVICE_NAME" where ns is a namespace prefix valid at this scope. |
endpointName | QName | The name of the endpoint to invoke, if this address/WSDL hosts several. It maps to the wsdl:port@name. In the format of "ns:ENDPOINT_NAME" where ns is a namespace prefix valid at this scope. |
bindingId | URI | The URI, or ID, of the message binding for the endpoint to use. For SOAP the binding URI(ID) is specified by the JAX-WS specification. For other message bindings the URI is the namespace of the WSDL extensions used to specify the binding. |
bus | Bean Reference | The bus name that will be used in the jaxws endpoint (defaults to |
username | String |
|
password | String |
|
wsdlLocation | URL | A URL to connect to in order to retrieve the WSDL for the service. This is not required. |
createdFromAPI | boolean | This indicates that the client bean was already created using jaxws API's thus at runtime when parsing the bean spring can use these values rather than the default ones. |
It also supports many child elements:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:soap="http://cxf.apache.org/bindings/soap" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <jaxws:server id="inlineImplementor" address="http://localhost:8080/simpleWithAddress"> <jaxws:serviceBean> <bean class="org.apache.hello_world_soap_http.GreeterImpl"/> </jaxws:serviceBean> </jaxws:server> <jaxws:server id="bookServer" serviceClass="org.apache.cxf.anonymous_complex_type.AnonymousComplexTypeImpl" address="http://localhost:8080/act" bus="cxf"> <jaxws:invoker> <bean class="org.apache.cxf.service.invoker.BeanInvoker"> <constructor-arg> <bean class="org.apache.cxf.anonymous_complex_type.AnonymousComplexTypeImpl"/> </constructor-arg> </bean> </jaxws:invoker> <jaxws:dataBinding> <bean class="org.apache.cxf.jaxb.JAXBDataBinding"> <property name="namespaceMap"> <map> <entry> <key><value>http://cxf.apache.org/anonymous_complex_type/</value></key> <value>BeepBeep</value> </entry> </map> </property> </bean> </jaxws:dataBinding> </jaxws:server> <jaxws:client id="bookClient" serviceClass="org.apache.cxf.anonymous_complex_type.AnonymousComplexType" address="http://localhost:8080/act"/> </beans> |
...