Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

ws:primaryWsdl does not support imported xsd as well as xsd's that import other xsd's #18

Open
glassfishrobot opened this issue Jul 29, 2008 · 4 comments

Comments

@glassfishrobot
Copy link
Contributor

Definition of wsdl below does not allow access to imported xsd.

For details see similar bug in Spring WS:
http://jira.springframework.org/browse/SWS-281


WEB-INF/applicationContext.xml

<wss:bindings id="jax-ws.http">
wss:bindings
<wss:binding url="/services/AddInt" service="#AddIntService" />
</wss:bindings>
</wss:bindings>

<ws:service
id="AddIntService"
bean="#AddIntServiceImpl"
serviceName="tns:AddIntService"
portName="tns:AddIntPort"
xmlns:tns="http://www.example.org/AddInt"
bindingId="http://www.w3.org/2003/05/soap/bindings/HTTP/">
ws:handlers

</ws:handlers>
ws:primaryWsdl
/WEB-INF/wsdl/AddInt.wsdl
</ws:primaryWsdl>
</ws:service>
....

WEB-INF/wsdl/AddInt.wsdl

<wsdl:definitions name="AddInt"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.example.org/AddInt"
targetNamespace="http://www.example.org/AddInt">
wsdl:types
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import
namespace="http://www.example.org/AddInt"
schemaLocation="AddInt.xsd"/>
</xsd:schema>
</wsdl:types>
....
<wsdl:service name="AddIntService">
<wsdl:port name="AddIntPort" binding="tns:AddIntBinding">
<soap:address
location="http://localhost:8080/AddInt/services/AddInt"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Environment

Operating System: All
Platform: All

Affected Versions

[current]

@glassfishrobot
Copy link
Contributor Author

Reported by [email protected]

@glassfishrobot
Copy link
Contributor Author

Was assigned to [email protected]

@glassfishrobot
Copy link
Contributor Author

[email protected] said:
It works if you specify the imported XSD as ws:metadata:

ws:metadata
AddInt.xsd
</ws:metadata>

Unfortunately you can only specify one XSD (see Issue 12).
I vote for not having to specify metadata at all.

By the way, is Kohsuke still working on this? I got the impression he changed
focus to other projects, leaving JAX* stuff rather abandoned.

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA JAX_WS_COMMONS-18

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant