Thanks for your reply.
1) I already found out about the wrong namespace prefix... fixed that and got
another type of error instead.
2) The // is because a WSDL file (which is what I'm trying to use) doesn't
have the schema element as the root element... the structure is something
like "/definitions/types/schema" so therefore, an xpath expression actually
should contain either a double slash or a full path to the element.
Kind regards, Stefan Freyr.
On Friday 26 May 2006 14:15, Vallamshettla, Anand wrote:
> I looked at the binding file, namespace prefix on node element is wrong.
> It doesn't match with the declaration in the root element.
>
> <jxb:bindings ....... xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <jxb:bindings node="//s:schema[@targetNamespace='...']">
>
> It the node value '//s' a typo? If not, it should be '/xs' (NOTE: only
> one '/')
>
> <jxb:bindings node="/xs:schema[@targetNamespace='...']">
>
>
> Thanks
> Anand
>
>
> -----Original Message-----
> From: Stefan Freyr Stefansson [mailto:stfs_at_hugsmidjan.is]
> Sent: Thursday, May 25, 2006 5:45 PM
> To: users_at_jaxb.dev.java.net
> Subject: Error using custom (external) bindings with WSDL
>
> Hello everyone.
>
> I'm trying to create an external binding definition file to specify the
> package into which classes for a particular namespace should be put.
>
> I've searched high and low and I haven't really found anything that
> describes
> my scenario exactly. I've found some examples where the name of the XSD
> file
> is used to dictate the package name but I'm using a single WSDL file
> with a
> few schema definitions "embedded" so I have to use the actual
> targetNamespace
> attribute in each <s:schema> element.
>
> I'm attaching a wsdl file and a jaxb-binding definition file that
> demonstrate
> my problem. I'm running xjc in the following way:
>
> xjc.sh -d gen/ -wsdl -verbose one.wsdl -b jaxb-bindings.xml
>
> And the error I'm getting is:
>
> parsing a schema...
> [ERROR] XPath error: null
> line 2 of file:/home/stefan/hugsmidjan/tmp/jaxb-test/jaxb-bindings.xml
>
> [ERROR] XPath error: null
> line 7 of file:/home/stefan/hugsmidjan/tmp/jaxb-test/jaxb-bindings.xml
>
> Can anyone point to what I'm doing wrong? Any help with this would be
> greatly
> appreciated.
>
> Kind regards, Stefan Freyr.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
- application/pgp-signature attachment: stored