[JBoss JIRA] Updated: (JBWS-1172) Support schema validation for incoming messages
by Magesh Kumar B (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-1172?page=all ]
Magesh Kumar B updated JBWS-1172:
---------------------------------
Comment: was deleted
> Support schema validation for incoming messages
> -----------------------------------------------
>
> Key: JBWS-1172
> URL: http://jira.jboss.com/jira/browse/JBWS-1172
> Project: JBoss Web Services
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: jbossws-jaxws
> Reporter: Thomas Diesler
> Fix For: jbossws-2.1.1
>
>
> I am trying to use JBOSSWS 1.0.2. and JBOSSAS-4.0.4GA
> I am starting with a WSDL file that contains a schema. I used WSTOOLS to generate the appropriate artifacts
> I would like to use DOCUMENT/LITERAL wrapped style and I would like to turn on schema validation of my XML instances against a schema defined in the WSDL (on receipt of the message the server does the validation ?).
> Looking through the sources, I see that JAXBDeserializer (jbossws-core.jar) calls JAXBUnmarshallerImpl which calls UnmarshallerImpl (jboss-xml-binding.jar) which does the parsing of the XML.
> I do not see any call to UnmarshallerImpl.setSchemaValidation in this call graph. Should this be called to turn on to do Schema Validation ? If so how and where ?
> Is Schema Validation for Document/Literal something that JBOSSWS 1.0.2 supports ?
> How does one turn on XML Schema validation in JBOSSWS ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[JBoss JIRA] Commented: (JBWS-1172) Support schema validation for incoming messages
by Magesh Kumar B (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-1172?page=comments#action_12368346 ]
Magesh Kumar B commented on JBWS-1172:
--------------------------------------
Another support case https://na1.salesforce.com/50030000003Oeet
> Support schema validation for incoming messages
> -----------------------------------------------
>
> Key: JBWS-1172
> URL: http://jira.jboss.com/jira/browse/JBWS-1172
> Project: JBoss Web Services
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: jbossws-jaxws
> Reporter: Thomas Diesler
> Fix For: jbossws-2.1.1
>
>
> I am trying to use JBOSSWS 1.0.2. and JBOSSAS-4.0.4GA
> I am starting with a WSDL file that contains a schema. I used WSTOOLS to generate the appropriate artifacts
> I would like to use DOCUMENT/LITERAL wrapped style and I would like to turn on schema validation of my XML instances against a schema defined in the WSDL (on receipt of the message the server does the validation ?).
> Looking through the sources, I see that JAXBDeserializer (jbossws-core.jar) calls JAXBUnmarshallerImpl which calls UnmarshallerImpl (jboss-xml-binding.jar) which does the parsing of the XML.
> I do not see any call to UnmarshallerImpl.setSchemaValidation in this call graph. Should this be called to turn on to do Schema Validation ? If so how and where ?
> Is Schema Validation for Document/Literal something that JBOSSWS 1.0.2 supports ?
> How does one turn on XML Schema validation in JBOSSWS ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[JBoss JIRA] Reopened: (JBWS-862) Return SOAP Fault for invalid soap messages
by Thomas Diesler (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-862?page=all ]
Thomas Diesler reopened JBWS-862:
---------------------------------
> Return SOAP Fault for invalid soap messages
> -------------------------------------------
>
> Key: JBWS-862
> URL: http://jira.jboss.com/jira/browse/JBWS-862
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-jaxws
> Reporter: Anil Saldhana
> Assigned To: Thomas Diesler
> Priority: Minor
>
> Please refer to Branch_4_0 testcase - org.jboss.test.wsrp.MarkupTestCase and the test is "testBlankSOAPMessage"
> The error in server.log is
> =======================================================================================
> 01:03:50,718 ERROR [SOAPFaultExceptionHelper] SOAP request exception
> javax.xml.soap.SOAPException: Cannot obtain SOAPBody from SOAPMessage
> at javax.xml.soap.SOAPMessage.getSOAPBody(SOAPMessage.java:182)
> at org.jboss.ws.soap.SOAPMessageDispatcher.getDispatchDestination(SOAPMessageDispatcher.java:77)
> at org.jboss.ws.soap.SOAPMessageImpl.getOperationMetaData(SOAPMessageImpl.java:285)
> at org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:153)
> at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:110)
> at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:236)
> at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:113)
> .....
> Caused by: java.lang.NullPointerException
> at org.jboss.ws.soap.SOAPMessageContextImpl.getNamespaceRegistry(SOAPMessageContextImpl.java:168)
> at org.jboss.ws.soap.SOAPMessageContextImpl.getSerializationContext(SOAPMessageContextImpl.java:153)
> at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.toSOAPMessage(SOAPFaultExceptionHelper.java:222)
> at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:177)
> =======================================================================================
> To run the testcase:
> ===============================================================================
> asaldhana~/jboss-4.0/testsuite>ant -Dtest=org.jboss.test.wsrp.MarkupTestCase one-test
> Buildfile: build.xml
> Overriding previous definition of reference to xdoclet.task.classpath
> one-test:
> [delete] Deleting: C:\cygwin\home\asaldhana\jboss-4.0\testsuite\output\log\test.log
> [junit] Running org.jboss.test.wsrp.MarkupTestCase
> [junit] Tests run: 6, Failures: 2, Errors: 0, Time elapsed: 10.594 sec
> [junit] Test org.jboss.test.wsrp.MarkupTestCase FAILED
> BUILD SUCCESSFUL
> Total time: 14 seconds
> ============================================================================
> Please ignore the other failing testcase - testBEAPortalInterop.
> Please change the priority and schedule of this JIRA issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[JBoss JIRA] Commented: (JBWS-1008) @WebService wsdlLocation doesn't locate wsdl properly
by Martijn Verburg (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-1008?page=comments#action_12368035 ]
Martijn Verburg commented on JBWS-1008:
---------------------------------------
1 - Apologies in that case, I just saw that I had exactly the same symptoms, assumed there was a common cause.
2 - You're right, my case is against JBossWS 1.0.3SP1, I'll try upgrading to 1.0.4 or 1.2.1 and raise if need be - thnx
> @WebService wsdlLocation doesn't locate wsdl properly
> -----------------------------------------------------
>
> Key: JBWS-1008
> URL: http://jira.jboss.com/jira/browse/JBWS-1008
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-jaxws
> Affects Versions: jbossws-1.0.1
> Reporter: Jason T. Greene
> Assigned To: Darran Lofthouse
> Attachments: ws.war
>
>
> I am attempting to build a JSR-181 POJO using an existing WSDL.
> I specify wsdlLocation in my annotation:
> @WebService(wsdlLocation="META-INF/wsdl/MyService.wsdl")
> I package everything as a WAR and on deployment I get this:
> 10:33:03,695 ERROR [MainDeployer] Could not start deployment: file:/C:/dev/jboss-4.0.4.GA/server/all/deploy/MyApp.war
> org.jboss.ws.WSException: Invalid wsdlFile 'META-INF/wsdl/MyService.wsdl', expected in: WEB-INF/wsdl/
> at org.jboss.ws.server.WSDLFilePublisher.getPublishLocation(WSDLFilePublisher.java:323)
> Moving my WSDL to the WEB-INF directory also fails:
> 10:25:27,140 ERROR [MainDeployer] Could not create deployment: file:/C:/dev/jboss-4.0.4.GA/server/all/deploy/MyApp.war
> java.lang.IllegalArgumentException: Cannot find wsdl in deployment: META-INF/wsdl/MyService.wsdl
> at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:270)
> Has anyone else been able to get this to work?
> I am using jbossws-1.0.1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 5 months
[JBoss JIRA] Commented: (JBWS-1008) @WebService wsdlLocation doesn't locate wsdl properly
by Darran Lofthouse (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-1008?page=comments#action_12368018 ]
Darran Lofthouse commented on JBWS-1008:
----------------------------------------
1 - This issue was regarding JAX-WS / annotated endpoints, your deployment is JAX-RPC based so not related to this issue.
2 - This issue was raised against JBossWS 1.0.1 which is a very old version, there have also been three releases of JBossWS since JBossWS 1.0.3.SP1 which is the version included with JBossAS 4.0.5.GA.
Please upgrade to the latest version of JBossWS and if you still have problems please raise this on the JBossWS user forums, if appropriate you may then be asked to create an issue against JAX-RPC.
> @WebService wsdlLocation doesn't locate wsdl properly
> -----------------------------------------------------
>
> Key: JBWS-1008
> URL: http://jira.jboss.com/jira/browse/JBWS-1008
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-jaxws
> Affects Versions: jbossws-1.0.1
> Reporter: Jason T. Greene
> Assigned To: Darran Lofthouse
> Attachments: ws.war
>
>
> I am attempting to build a JSR-181 POJO using an existing WSDL.
> I specify wsdlLocation in my annotation:
> @WebService(wsdlLocation="META-INF/wsdl/MyService.wsdl")
> I package everything as a WAR and on deployment I get this:
> 10:33:03,695 ERROR [MainDeployer] Could not start deployment: file:/C:/dev/jboss-4.0.4.GA/server/all/deploy/MyApp.war
> org.jboss.ws.WSException: Invalid wsdlFile 'META-INF/wsdl/MyService.wsdl', expected in: WEB-INF/wsdl/
> at org.jboss.ws.server.WSDLFilePublisher.getPublishLocation(WSDLFilePublisher.java:323)
> Moving my WSDL to the WEB-INF directory also fails:
> 10:25:27,140 ERROR [MainDeployer] Could not create deployment: file:/C:/dev/jboss-4.0.4.GA/server/all/deploy/MyApp.war
> java.lang.IllegalArgumentException: Cannot find wsdl in deployment: META-INF/wsdl/MyService.wsdl
> at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:270)
> Has anyone else been able to get this to work?
> I am using jbossws-1.0.1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 5 months
[JBoss JIRA] Updated: (JBWS-1008) @WebService wsdlLocation doesn't locate wsdl properly
by Martijn Verburg (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-1008?page=all ]
Martijn Verburg updated JBWS-1008:
----------------------------------
Attachment: ws.war
WAR file with behaviour, dropping into a default jboss-4.0.5.GA installation, wsdl files etc generated via the wstools.sh script, on java 1.5.0_10
> @WebService wsdlLocation doesn't locate wsdl properly
> -----------------------------------------------------
>
> Key: JBWS-1008
> URL: http://jira.jboss.com/jira/browse/JBWS-1008
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-jaxws
> Affects Versions: jbossws-1.0.1
> Reporter: Jason T. Greene
> Assigned To: Darran Lofthouse
> Attachments: ws.war
>
>
> I am attempting to build a JSR-181 POJO using an existing WSDL.
> I specify wsdlLocation in my annotation:
> @WebService(wsdlLocation="META-INF/wsdl/MyService.wsdl")
> I package everything as a WAR and on deployment I get this:
> 10:33:03,695 ERROR [MainDeployer] Could not start deployment: file:/C:/dev/jboss-4.0.4.GA/server/all/deploy/MyApp.war
> org.jboss.ws.WSException: Invalid wsdlFile 'META-INF/wsdl/MyService.wsdl', expected in: WEB-INF/wsdl/
> at org.jboss.ws.server.WSDLFilePublisher.getPublishLocation(WSDLFilePublisher.java:323)
> Moving my WSDL to the WEB-INF directory also fails:
> 10:25:27,140 ERROR [MainDeployer] Could not create deployment: file:/C:/dev/jboss-4.0.4.GA/server/all/deploy/MyApp.war
> java.lang.IllegalArgumentException: Cannot find wsdl in deployment: META-INF/wsdl/MyService.wsdl
> at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:270)
> Has anyone else been able to get this to work?
> I am using jbossws-1.0.1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 5 months