[JBossWS] - Problem using a .NET client with JBOSSWS 1.0.3
by king_country2000
We have exposed a web service in JBOSS AS 4.0.4 GA using DOC/LITERAL/WRAPPED.
We have a .NET client that accesses this web service. In JBOSSWS
1.0-GA this worked fine. We then upgraded to JBOSSWS 1.0.3-GA and now
the same setup produces error messages:
anonymous wrote :
|
| Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: The prefix "xsi" for attribute "xsi:nil" associated with an element type "userId" is not bound. @ *unknown*[1,579]
|
| at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67)
|
| at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
|
| ... 30 more
|
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: The prefix "xsi" for attribute "xsi:nil" associated with an element type "userId" is not bound. @ *unknown*[1,579]
|
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
|
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126)
|
| at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:63)
|
| ... 31 more
|
| Caused by: org.xml.sax.SAXException: The prefix "xsi" for attribute "xsi:nil" associated with an element type "userId" is not bound. @ *unknown*[1,579]
|
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.fatalError(SaxJBossXBParser.java:332)
|
| at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
|
| at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
|
| at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
|
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
|
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
|
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
|
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
|
|
|
It looks like the XML Schema Instance namespace is not being provided
to the deserializer.
Is this a bug. If so could it be fixed in the next release.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978673#3978673
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978673
17 years, 7 months
[JBossWS] - Exception when invoking EJB3 webservice from clients/SchemaB
by MmarcoM
hi all,
i have exposed an EJB3 as a webservice....
it is deployed fine on jboss, but whenn i try to invoke it from a client i got this bad exception..
| Exception in thread "main" java.rmi.RemoteException: Call invocation failed: Cou
| ld not transmit message; nested exception is:
| javax.xml.soap.SOAPException: Could not transmit message
| at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
| at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
| at $Proxy0.testWebServiceMethod(Unknown Source)
| at ws.jboss.org.samples.jsr181ejb.WSFacadeTester.doTest(WSFacadeTester.j
| ava:49)
| at ws.jboss.org.samples.jsr181ejb.WSFacadeTester.main(WSFacadeTester.jav
| a:34)
| Caused by: javax.xml.soap.SOAPException: Could not transmit message
| at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204
| )
| at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
| ... 5 more
| Caused by: java.lang.NoSuchMethodError: org.jboss.xb.binding.sunday.unmarshallin
| g.SchemaBinding.setXopMarshaller(Lorg/jboss/xb/binding/sunday/xop/XOPMarshaller;
| )V
| at org.jboss.ws.jaxb.JBossXBMarshallerImpl.marshal(JBossXBMarshallerImpl
| .java:145)
| at org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.
| java:107)
| at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElemen
| t.java:157)
| at org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.j
| ava:817)
| at org.jboss.ws.soap.SOAPContentElement.handleMTOMTransitions(SOAPConten
| tElement.java:1015)
| at org.jboss.ws.soap.SOAPContentElement.write(SOAPContentElement.java:96
| 8)
| at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
| va:171)
| at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
| va:184)
| at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
| va:184)
| at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
| va:184)
| at org.jboss.ws.soap.SAAJElementWriter.printInternal(SAAJElementWriter.j
| ava:163)
| at org.jboss.ws.soap.SAAJElementWriter.print(SAAJElementWriter.java:142)
|
| at org.jboss.ws.soap.SOAPMessageImpl.writeTo(SOAPMessageImpl.java:266)
| at org.jboss.ws.binding.soap.SOAPMessageMarshaller.write(SOAPMessageMars
| haller.java:78)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnect
| ion(HTTPClientInvoker.java:164)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPCli
| entInvoker.java:81)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.jav
| a:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189
| )
| ... 6 more
|
in running my client, i am launching application as follows..
| C:\Sw\J2MEJobApp\wsclient>java -cp activation.jar;jbossall-client.jar;jboss-xml-
| binding.jar;jbossws-client.jar;mail.jar;serializer.jar;xalan.jar;xercesImpl.jar;
| xml-apis.jar;target\wsclient-1.0-SNAPSHOT.jar;. ws.jboss.org.samples.jsr181ejb.WSFacadeTester
|
i m guessing there's a classpath clash... can anyone help me in fixing the problem?
thanks and regards
marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978333#3978333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978333
17 years, 7 months
[JBossWS] - Pure message style SOAP exchange
by giusarno
Hi,
I would like to have a simple WS where I can send different XML documents (starting with a different root element) using the same SOAP channel.
I basically want to implement a simple and generic SOAP XML doc exchange interface.
I looked at the documentation and I thought Messaging style did for me.
But when I looked at the conf file I noticed that we still need to specify the root element for the incoming message and for the return message.
1 question: Why it is so ? if the either the sender and the responder implements method that do not care about the content ?
| <operation name="processElement" return-xml-name="Response">
| <parameter type="javax.xml.soap.SOAPElement" xml-name="Order"/>
| </operation>
| </service>
|
|
| public interface MessageTestService extends Remote
| {
| public Element processElement(Element msg) throws RemoteException;
| }
|
2 question: How can I solve my problem with JbossWS? is it possible ?
Can anyone please help on this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978124#3978124
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978124
17 years, 7 months