I tried the message endpoint example you pointed to but this example is thin on
detail. It isn?t as comprehensive as the tutorials on other message types.
For example there is no jboss-web.xml, webservices.xml or web.xml file given.
I used a bit of common sense though (I think!) and put these files together
with the details given there but initially couldn?t get it to work.
JBoss was throwing the following exception whenever the service was invoked:
javax.xml.rpc.JAXRPCException: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR:
An invalid or illegal XML character is specified.
After some time I found that if the service returned a org.w3c.dom.Document
object it worked OK (i.e. instead of an Element object).
There is still one problem though, when the service is deployed, JBoss gives
the following warnings, although it still deploys and works:
WARN [JavaWsdlMapping] Cannot find jaxrpc-mapping for type:
{http://ws.sample}in_part
WARN [JavaWsdlMapping] Cannot find jaxrpc-mapping for type:
{http://ws.sample}out_part
WARN [TypeMappingDescription] Class not found: com.myapp.in_part
WARN [TypeMappingDescription] Class not found: com.myapp.out_part
INFO [AxisService] WSDD published to:
C:\Java\jboss-4.0.2\server\default\data\wsdl\message_endpoint.war\MessageEndpoint.wsdd
INFO [AxisService] Web Service deployed:
http://mcp-con-1:8080/message_endpoint/messageEndpointService
It is like it is looking for serialiser / deserialiser classes to map my in/out
types too but there is no mapping to be done here, right?
"in_part" and "out_part" are the types defined in my wsdl thus:
| <schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://ws.sample">
| <element name="in_part" type="xsd:anyType"/>
| <element name="out_part" type="xsd:anyType"/>
| </schema>
|
Do you know how to stop these warning messages?
The WSDD created by JBoss looks like this:
| <deployment
| xmlns='http://xml.apache.org/axis/wsdd/'
| xmlns:java='http://xml.apache.org/axis/wsdd/providers/java'
| xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/'
| xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
| xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
|
| <service name='message_endpoint.war#MessageEndpoint' style='document'
use='literal' provider='Handler'>
|
| <parameter name='webserviceID'
value='message_endpoint.war#MessageEndpoint' />
| <parameter name='handlerClass'
value='org.jboss.webservice.server.InvokerProviderJSE' />
|
| <operation name='process' qname='ns1:process' returnQName='ns1:out_part'
returnType='ns1:out_part' xmlns:ns1='http://ws.sample' >
| <parameter name='in' qname='ns1:in_part' mode='IN' type='ns1:in_part'
xmlns:ns1='http://ws.sample' />
| </operation>
|
| <!-- Class not found, ignore type mapping
| <typeMapping
| qname='ns1:in_part' xmlns:ns1='http://ws.sample'
| type='java:com.myapp.in_part'
| serializer='null'
| deserializer='null'
| encodingStyle=''>
| </typeMapping>
| -->
| <!-- Class not found, ignore type mapping
| <typeMapping
| qname='ns1:out_part' xmlns:ns1='http://ws.sample'
| type='java:com.myapp.out_part'
| serializer='null'
| deserializer='null'
| encodingStyle=''>
| </typeMapping>
| -->
| </service>
| </deployment>
|
I would like to have something as simple as this as i think it would help fix
the problem, how can I force the wsdd to be more like this:
| <deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
xmlns:ns1="message-endpoint" >
| <service name="message_endpoint.war#MessageEndpoint" style="message">
| <parameter name="className"
value="com.myapp.MessageEndpointService"/>
| <parameter name="allowedMethods" value="process"/>
| </service>
| </deployment>
|
I can't post my XML files if it helps.
Cheers, Phil.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881817#3881817
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881817
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user