You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jens <sm...@dzbank.de> on 2011/04/08 11:57:22 UTC
wsdl2java with MTOM and firewall
Hi,
I'm trying to use the cxf-codegen-plugin (v 2.3.2) to generate classes for a
WSDL that uses MTOM.
The host I'm developing on sits behind a firewall and doesn't have a
connection to the internet. The plugin, however, apparently tries to
reference the xmlmime schema online, and fails:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl
definition from :
file:/vobs/sop/projects/bundesanzeiger/contract/src/main/resources/META-INF/wsdl/URegService.wsdl
Caused by : WSDLException (at /wsdl:definitions/wsdl:types/xs:schema):
faultCode=PARSER_ERROR: Problem parsing
'http://www.w3.org/2005/05/xmlmime'.: java.net.ConnectException: Connection
timed out
Is there a way around this so I can build those classes offline?
Thanks,
Jens
--
View this message in context: http://cxf.547215.n5.nabble.com/wsdl2java-with-MTOM-and-firewall-tp4290446p4290446.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: wsdl2java with MTOM and firewall
Posted by Jens <sm...@dzbank.de>.
Daniel Kulp wrote:
>
> If you pull the xmlmime schema to someplace local, you can use a catalog
> file
> to rewrite the location to the local file. The tools all have a catalog
> option that you can use.
Hi Daniel,
I've tried to use the catalog option, but unfortunately, nothing I have
tried so far prevents the tools from trying to connect. Is the catalog
really the right place to fix this? The WSDL only declares a namespace like
this:
It doesn't declare a schemaLocation or anything like that. What URI should
be used in that case? I've tried
but to no avail.
Thanks,
Jens
--
View this message in context: http://cxf.547215.n5.nabble.com/wsdl2java-with-MTOM-and-firewall-tp4290446p4295823.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: wsdl2java with MTOM and firewall
Posted by Daniel Kulp <dk...@apache.org>.
If you pull the xmlmime schema to someplace local, you can use a catalog file
to rewrite the location to the local file. The tools all have a catalog
option that you can use. The file would look similar to:
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteURI rewritePrefix="./extra.xsd"
uriStartString="http://www.company.com/extra.xsd"/>
</catalog>
If you google OASIS catalog, you should see more examples and descriptions.
Dan
On Friday 08 April 2011 5:57:22 AM Jens wrote:
> Hi,
>
> I'm trying to use the cxf-codegen-plugin (v 2.3.2) to generate classes for
> a WSDL that uses MTOM.
>
> The host I'm developing on sits behind a firewall and doesn't have a
> connection to the internet. The plugin, however, apparently tries to
> reference the xmlmime schema online, and fails:
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl
> definition from :
> file:/vobs/sop/projects/bundesanzeiger/contract/src/main/resources/META-INF
> /wsdl/URegService.wsdl Caused by : WSDLException (at
> /wsdl:definitions/wsdl:types/xs:schema): faultCode=PARSER_ERROR: Problem
> parsing
> 'http://www.w3.org/2005/05/xmlmime'.: java.net.ConnectException: Connection
> timed out
>
> Is there a way around this so I can build those classes offline?
>
> Thanks,
> Jens
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/wsdl2java-with-MTOM-and-firewall-tp4290446
> p4290446.html Sent from the cxf-user mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com