You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Evanthika Amarasiri (JIRA)" <ji...@apache.org> on 2008/06/20 08:13:45 UTC
[jira] Commented: (SYNAPSE-362) WSDL Relative Imports/Includes
break in Local Repository
[ https://issues.apache.org/jira/browse/SYNAPSE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606641#action_12606641 ]
Evanthika Amarasiri commented on SYNAPSE-362:
---------------------------------------------
Hi Gary,
When you specify the location of the MyMatches.wsdl and save the Proxy Service it looks for the wsdl at the SYNAPSE_HOME level (i.e. - /Users/grudolph/Applications/synapse-1.2) but actually your wsdl is located at repository/conf/resources/com/eharmony/singles/ws/proxy. As a solution specify your MyMatches.wsdl as a resource in the Proxy service. To do this you can create a local entry or and integrated registry pointing to your MyMatches.wsdl and then specify this WSDL as a resource under <publishWSDL.....>
For example
<publishWSDL key="SinglesProxy_wsdl" >
<resource location="MyMatches.wsdl" key="the registry entry key pointing to your MyMatches.wsdl"/>
</publishWSDL>
By specifying this parameter it will locate your MyMatches.wsdl file
> WSDL Relative Imports/Includes break in Local Repository
> --------------------------------------------------------
>
> Key: SYNAPSE-362
> URL: https://issues.apache.org/jira/browse/SYNAPSE-362
> Project: Synapse
> Issue Type: Bug
> Affects Versions: 1.2
> Reporter: Gary Rudolph
> Priority: Minor
> Attachments: error.txt, MyMatches.wsdl, SinglesProxy.wsdl, SinglesSchema.xsd, synapse.xml
>
>
> We have a WSDL that performs a <wsdl:import> in which that wsdl then performs an <xsd:include> both using relative paths. It appears that it wants to locate the relative path from the SYNAPSE_HOME.
> i.e. in:
> repository/conf/resources/com/eharmony/singles/ws/proxy
> SinglesProxy.wsdl
> <wsdl:import namespace="urn:com:eharmony:singles:ws:proxy" location="MyMatches.wsdl"/>
> MyMatches.wsdl
> <xsd:include schemaLocation="SinglesSchema.xsd"/>
> SinglesSchema.xsd
> Then in the synapse.xml I have:
> <localEntry key="SinglesProxy_wsdl" src="file:repository/conf/resources/com/eharmony/singles/ws/proxy/SinglesProxy.wsdl" />
> This breaks trying to load the MyMatches.wsdl with the message:
> Caused by: java.io.FileNotFoundException: /Users/grudolph/Applications/synapse-1.2/MyMatches.wsdl (No such file or directory)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org