[ 
https://issues.apache.org/jira/browse/CXF-2910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896673#action_12896673
 ] 

William Tam commented on CXF-2910:
----------------------------------

I think CXF is doing to right thing according to Basic Profile 
(http://ws-i.org/profiles/BasicProfile-1.2-WGD.html#Declaration_of_part_Elements).
  It says (in 4.4.4), "Declaration of part Elements Examples 4 and 5 in WSDL 
1.1 Section 3.1 incorrectly show the use of XML Schema types (e.g. 
"xsd:string") as a valid value for the element attribute of a wsdl:part 
element."

> Unable to use XmlSchema element as message part in WSDL
> -------------------------------------------------------
>
>                 Key: CXF-2910
>                 URL: https://issues.apache.org/jira/browse/CXF-2910
>             Project: CXF
>          Issue Type: Bug
>          Components: Service Model
>            Reporter: William Tam
>             Fix For: 2.3, 2.2.10
>
>         Attachments: CXF-2910-test-case.txt
>
>
> Please refer to the test case in the attachment.   In the WSDL, I am using 
> "xsd:any" which should be element defined in XML Schema.  
> http://schemas.stylusstudio.com/xforms/n55d5735c/index.html
> However, I am having trouble to build a service model from that WSDL.  I am 
> getting the following error.   
> org.apache.cxf.wsdl11.WSDLRuntimeException: Part DefaultInput defined as 
> element {http://www.w3.org/2001/XMLSchema}any which is not in the schema.
>       at 
> org.apache.cxf.wsdl11.WSDLServiceBuilder.buildMessage(WSDLServiceBuilder.java:812)
>       at 
> org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:582)
>       at 
> org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:561)
>       at 
> org.apache.cxf.wsdl11.WSDLServiceBuilder.buildMockService(WSDLServiceBuilder.java:257)
>       at 
> org.apache.cxf.wsdl11.WSDLServiceBuilder.buildMockServices(WSDLServiceBuilder.java:201)
>       at 
> org.apache.cxf.wsdl11.WSDLDefinitionBuilderTest.testXmlSchemaElementAsMessagePart(WSDLDefinitionBuilderTest.java:141)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:592)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>       at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>       at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>       at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>       at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>       at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>       at 
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
>       at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to