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

Java 从JBoss上运行的JSF应用程序调用Microsoft EWS,java,web-services,jboss,Java,Web Services,Jboss,我正在运行JBoss4.2.3、Java1.5和Ubuntu。在你告诉我在JBossWS论坛上发帖之前,我已经有了,而且那里没有很多活动。我试图从JSF web应用程序调用Microsoft Exchange web服务端点。我已经编写了其他web服务端点,并成功地将客户机构建到我的web应用程序中。我还在一个独立的Java应用程序中为该客户端使用相同的代码来调用exchange web服务,一切都很好,但出于某种原因,我在我的web应用程序中遇到了这个异常: org.jboss.ws.WSEx

我正在运行JBoss4.2.3、Java1.5和Ubuntu。在你告诉我在JBossWS论坛上发帖之前,我已经有了,而且那里没有很多活动。我试图从JSF web应用程序调用Microsoft Exchange web服务端点。我已经编写了其他web服务端点,并成功地将客户机构建到我的web应用程序中。我还在一个独立的Java应用程序中为该客户端使用相同的代码来调用exchange 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.\u 2006.messages.ExchangeServicePortType订阅方法时引发异常。异常输出的相关部分:

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

这似乎是Microsoft web服务的一个相当常见的问题,因为WSDL中定义的操作通常共享消息类型。我认为,WSDL规范不允许这样做,因为每个操作的消息负载必须具有唯一可识别的类型。JBoss WS似乎依赖于这种遵从性(并非不合理),但这对您来说并不是什么安慰


与JavaWS客户机问题的常见情况一样,我建议不要使用JBoss WS,而是使用。它忽略WSDL,只发送SOAP包装的XML文档。我曾使用Spring WS与Microsoft web服务集成,这些服务正是存在这种“非唯一操作”问题的,但我从未设法让传统的WSDL绑定客户机在这种情况下工作。

实际上比这更容易解决。我正在使用JBoss4.2.3和Java1.6。您需要做的就是从jboss/server//lib中删除jar文件jboss-jaxws.jar和jboss-jaxws-ext.jar,这可能是默认的。这个功能现在包含在jdk中,jboss中的旧版本应该被丢弃

我刚刚在jboss-4.2.3.GA/lib/annowed/目录中发现了另一对jar文件。一定要把它们也扔了

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

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

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

我还不能测试这个,但是我会告诉你的。我删除了默认/lib目录中的所有本机web服务JAR,一切正常!非常感谢。