从JBoss上运行的JSF应用程序调用Microsoft EWS

时间:2009-07-14 12:43:22

标签: java web-services jboss

我正在运行JBoss 4.2.3,Java 1.5和Ubuntu。在你告诉我在JBossWS论坛上发帖之前,我已经有了,那里没有很多活动。我试图从JSF Web应用程序调用Microsoft Exchange Web服务端点。我已经编写了其他Web服务端点,并已成功将客户端构建到我的Web应用程序中。我也在一个独立的Java应用程序中为这个客户端使用相同的代码来调用交换Web服务,一切都很好,但出于某种原因我在我的Web应用程序中得到了这个异常:

org.jboss.ws.WSException: Cannot uniquely indentify operation: {http://schemas.microsoft.com/exchang
e/services/2006/messages}Subscribe

调用com.microsoft.schemas.exchange.services._2006.messages.ExchangeServicePortType subscribe方法时抛出异常。解决部分异常输出:

13:17:15,718 ERROR [STDERR] org.jboss.ws.WSException: Cannot uniquely indentify operation: {http://s
chemas.microsoft.com/exchange/services/2006/messages}Subscribe
13:17:15,719 ERROR [STDERR]     at org.jboss.ws.metadata.umdm.EndpointMetaData.getOperation(EndpointMet
aData.java:417)
13:17:15,719 ERROR [STDERR]     at org.jboss.ws.core.CommonClient.getOperationMetaData(CommonClient.jav
a:195)
13:17:15,719 ERROR [STDERR]     at org.jboss.ws.core.CommonClient.getOperationMetaData(CommonClient.jav
a:184)
13:17:15,719 ERROR [STDERR]     at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:309
)
13:17:15,719 ERROR [STDERR]     at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:1
72)
13:17:15,719 ERROR [STDERR]     at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:1
52)
13:17:15,719 ERROR [STDERR]     at $Proxy101.subscribe(Unknown Source)

创建javax.xml.ws.Service对象时还有一堆输出:

13:17:13,438 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'The "xml:" Namespace'.
13:17:13,438 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'The "xml:" Namespace'.
13:17:13,438 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'This Version:'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'April 19, 2006'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Description'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'The namespace whose name is'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'http://www.w3.org/XML/1998/namespace'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'is bound by definition to'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'the prefix '.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'according to  '.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Namespaces in XML,'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'W3C Recommendation 14 Jan 1999'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw '(and by '.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Namespaces in XML 1.1'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw ').'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Note that unlike all other XML namespaces, both t
he name '.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'and'.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'the prefix are specified; '.
13:17:13,439 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'i.e., if you want XML 1.0 processors to recognize
 this namespace, you must use'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'the reserved prefix '.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw '.'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:lang'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'and '.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:space'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'As of the last update of this document, the '.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'XML 1.0 (Third Edition) Specification'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw '(and also the '.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'XML 1.1 Specification'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw ')'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'defines two attribute names in this namespace:'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:lang'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Designed for identifying'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'the human language used in the scope of the eleme
nt to which it's'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'attached.'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:space'.
13:17:13,440 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Designed to express whether or not the document's
 creator wishes white'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'space to be considered as significant in the scop
e of the element to which'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'it's attached.'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:base'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'The '.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'XML Base specification'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'describes a facility, similar to that of HTML BAS
E, for defining base URIs for'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'parts of XML documents.'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'It defines a single attribute,'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:base'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw ', and describes in'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'detail the procedure for its use in processing re
lative URI refeferences.'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:id'.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'The '.
13:17:13,441 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:id specification'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'defines'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'a single attribute, '.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:id'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw ', known to be of type '.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'ID'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'independently of any DTD or schema.'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Namespace change policy'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'The '.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'XML Core Working'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Group'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'reserves the right to'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'bring additional names from this namespace into a
ctive use by'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'providing definitions for them in new specificati
ons or'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'subsequent editions of existing specifications.  
The Working'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Group may also make modifications to the definiti
ons of the'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'names already in use, although such changes will 
not normally'.
13:17:13,442 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'change the well-formedness or validity of existin
g documents'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'or significantly change their meaning.'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'All changes to the use of this namespace will be 
achieved by'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'the publication of documents governed by the W3C 
Process.'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Related Resources'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Section'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw '2.10'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'of the XML 1.0 specification describes the syntax
 and semantics of'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'the '.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:space'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'attribute.'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'Section'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw '2.12'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'of the XML 1.0 specification describes the syntax
 and semantics of'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'the '.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:lang'.
13:17:13,443 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'attribute.'.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'An '.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'XML Schema'.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'fragment'.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'is available which constrains the syntax of '.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:lang'.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw ', '.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:space'.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw ','.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'xml:base'.
13:17:13,444 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-ch
aracter]::Message=s4s-elt-character: Non-whitespace characters are not allowed in schema elements ot
her than 'xs:appinfo' and 'xs:documentation'. Saw 'and '.
13:17:13,444

3 个答案:

答案 0 :(得分:1)

这似乎是Microsoft Web服务的一个相当普遍的问题,因为WSDL中定义的操作通常共享Message类型。我认为,WSDL规范不允许这样做,因为每个操作的消息有效负载必须具有唯一可识别的类型。 JBoss-WS似乎依赖于这种合规性(并非不合理),但这对你来说并不是很舒服。

与Java WS客户端问题一样,我建议不要使用JBoss-WS并使用Spring-WS。它忽略了WSDL,只发送SOAP包装的XML文档。我已经使用Spring-WS与具有这种“非独特操作”问题的Microsoft Web服务集成,但我从未设法让传统的WSDL绑定客户端在这样的情况下工作。

答案 1 :(得分:1)

它实际上比这更容易解决。我正在使用jboss 4.2.3和java 1.6。您需要做的就是从jboss / server /<> / lib,<>中删除jar文件jboss-jaxws.jar和jboss-jaxws-ext.jar。可能是默认的。此功能现在包含在jdk中,而jboss中的旧版本应该被抛出。

我刚刚在jboss-4.2.3.GA/lib/endorsed/目录中发现了另一对jar文件。确保你也扔掉它们。

2011年2月25日更新 我现在正在使用JBoss 5.1。要在此版本中删除的jar文件是jbossws-native-jaxws-ext.jar和jbossws-native-jaxws.jar。

答案 2 :(得分:0)

这可能意味着您有2个或更多具有相同@WebParam名称的网络方法。 例如:当我在网络服务中有两个网络方法时,我注意到了错误:

public String deleteRecords(@WebParam(name="recordsMessage") String fddXml) ; 
public String reprocessRecords(@WebParam(name="recordsMessage") String fddXml);