You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by keith chapman <ke...@gmail.com> on 2008/01/10 09:07:59 UTC

Problem parsing a WSDL having XML as the documentation

Hi Guys,

I have a situation where I have a WSDL with some XML as its service
documentation. Also I do not have a default namespace declared. This means
that the xml that I have within the documentation is not namespace
qualified. Under this situation Woden throws an error when trying to parse
the WSDL with the following exception. I've also attached a WSDL that causes
this issue. Do we need a null check in DOMXMLElement that cheks this before
creating an URI?

Caused by: java.lang.NullPointerException
        at java.net.URI$Parser.parse(URI.java:3003)
        at java.net.URI.<init>(URI.java:578)
        at org.apache.woden.internal.DOMXMLElement.doGetNamespaceURI(
DOMXMLElement.java:101)
        at org.apache.woden.internal.BaseXMLElement.getNamespaceURI(
BaseXMLElement.java:80)
        at org.apache.woden.internal.BaseWSDLReader.parseExtensionElement(
BaseWSDLReader.java:1532)
        at org.apache.woden.internal.BaseWSDLReader.parseDocumentation(
BaseWSDLReader.java:472)
        at org.apache.woden.internal.BaseWSDLReader.parseInterfaceOperation(
BaseWSDLReader.java:798)
        at org.apache.woden.internal.BaseWSDLReader.parseInterface(
BaseWSDLReader.java:663)
        at org.apache.woden.internal.BaseWSDLReader.parseDescription(
BaseWSDLReader.java:429)
        at org.apache.woden.internal.DOMWSDLReader.readWSDL(
DOMWSDLReader.java:184)
        at org.apache.woden.internal.DOMWSDLReader.readWSDL(
DOMWSDLReader.java:229)
        at org.apache.woden.internal.DOMWSDLReader.readWSDL(
DOMWSDLReader.java:264)
        at org.apache.woden.internal.DOMWSDLReader.readWSDL(
DOMWSDLReader.java:126)
        at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.readInTheWSDLFile(
WSDL20ToAxisServiceBuilder.java:1146)
        at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(
WSDL20ToAxisServiceBuilder.java:148)
        at org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder
.<init>(WSDL20ToAllAxisServicesBuilder.java:54)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
CodeGenerationEngine.java:109)

Thanks,
Keith.

-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Problem parsing a WSDL having XML as the documentation

Posted by keith chapman <ke...@gmail.com>.
Thanks John, I just checked it and looks good. Thanks for the quick fix.

Thanks,
Keith.

On Jan 11, 2008 8:58 AM, John Kaputin <KA...@uk.ibm.com> wrote:

> I have applied a fix via WODEN-193.
>
> John Kaputin
>
>
> "keith chapman" <ke...@gmail.com> wrote on 10/01/2008 16:43:01:
>
> > Hi Jeremy,
> >
> > I reattached it granting ASF license.
> >
> > Thanks,
> > Keith.
>
> > On Jan 10, 2008 7:34 PM, Jeremy Hughes <hu...@apache.org> wrote:
> > Any reason why you didn't click the 'ASF granted license' button on
> > the attachment?
> >
> > If it's ok, could you reattach the wsdl, granting the license.
> >
> > Thanks,
> > Jeremy
> >
> > On 10/01/2008, keith chapman < keithgchapman@gmail.com> wrote:
> > > Done. https://issues.apache.org/jira/browse/WODEN-193
> > >
> > > Thanks,
> > > Keith.
> > >
> > >
> > > On Jan 10, 2008 3:31 PM, Jeremy Hughes < hughesj@apache.org> wrote:
> > > > Hi Keith, could you open a JIRA please.
> > > >
> > > >
> > > >
> > > >
> > > > On 10/01/2008, keith chapman <ke...@gmail.com> wrote:
> > > > > Hi Guys,
> > > > >
> > > > > I have a situation where I have a WSDL with some XML as its
> service
> > > > > documentation. Also I do not have a default namespace declared.
> This
> > > means
> > > > > that the xml that I have within the documentation is not namespace
> > > > > qualified. Under this situation Woden throws an error when trying
> to
> > > parse
> > > > > the WSDL with the following exception. I've also attached a WSDL
> that
> > > causes
> > > > > this issue. Do we need a null check in DOMXMLElement that cheks
> this
> > > before
> > > > > creating an URI?
> > > > >
> > > > > Caused by: java.lang.NullPointerException
> > > > >         at java.net.URI$Parser.parse(URI.java:3003)
> > > > >         at java.net.URI .<init>(URI.java:578)
> > > > >         at
> > > > >
> > > org.apache.woden.internal.DOMXMLElement.doGetNamespaceURI
> > > > > (DOMXMLElement.java:101)
> > > > >         at
> > > > >
> > > org.apache.woden.internal.BaseXMLElement.
> > getNamespaceURI(BaseXMLElement.java:80)
> > > > >         at
> > > > >
> > > org.apache.woden.internal.BaseWSDLReader.parseExtensionElement
> > > (BaseWSDLReader.java :1532)
> > > > >         at
> > > > >
> > > org.apache.woden.internal.BaseWSDLReader.
> > parseDocumentation(BaseWSDLReader.java:472)
> > > > >         at
> > > > >
> > > org.apache.woden.internal.BaseWSDLReader.parseInterfaceOperation
> > > (BaseWSDLReader.java:798)
> > > > >         at
> > > > > org.apache.woden.internal.BaseWSDLReader.parseInterface
> > > > > (BaseWSDLReader.java:663)
> > > > >         at
> > > > >
> > > org.apache.woden.internal.BaseWSDLReader.parseDescription
> > > (BaseWSDLReader.java:429)
> > > > >         at
> > > > >
> > > org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java
> :184)
> > > > >         at
> > > > >
> > >
> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:229)
> > > > >         at
> > > > >
> > > org.apache.woden.internal.DOMWSDLReader.readWSDL
> (DOMWSDLReader.java:264)
> > > > >         at
> > > org.apache.woden.internal.DOMWSDLReader.readWSDL
> > > > > (DOMWSDLReader.java:126)
> > > > >         at
> > > > >
> > > org.apache.axis2.description.WSDL20ToAxisServiceBuilder.
> > readInTheWSDLFile (WSDL20ToAxisServiceBuilder.java:1146)
> > > > >         at
> > > > >
> > > org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(
> > > > > WSDL20ToAxisServiceBuilder.java:148)
> > > > >         at
> > > > >
> > > org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.
> > <init>(WSDL20ToAllAxisServicesBuilder.java:54)
> > > > >         at
> > > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > > .<init>(CodeGenerationEngine.java:109)
> > > > >
> > > > > Thanks,
> > > > > Keith.
> > > > >
> > > > > --
> > > > > Keith Chapman
> > > > > Software Engineer
> > > > > WSO2 Inc.
> > > > > Oxygenating the Web Service Platform.
> > > > > http://wso2.org/
> > > > >
> > > > > blog: http://www.keith-chapman.org
> > > > >
> > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > woden-dev-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > woden-dev-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Keith Chapman
> > > Software Engineer
> > > WSO2 Inc.
> > > Oxygenating the Web Service Platform.
> > > http://wso2.org/
> > >
> > > blog: http://www.keith-chapman.org
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
>
> >
> >
> >
> > --
> > Keith Chapman
> > Software Engineer
> > WSO2 Inc.
> > Oxygenating the Web Service Platform.
> > http://wso2.org/
> >
> > blog: http://www.keith-chapman.org
>
>
>
>
>
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>


-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Problem parsing a WSDL having XML as the documentation

Posted by John Kaputin <KA...@uk.ibm.com>.
I have applied a fix via WODEN-193.

John Kaputin


"keith chapman" <ke...@gmail.com> wrote on 10/01/2008 16:43:01:

> Hi Jeremy,
> 
> I reattached it granting ASF license.
> 
> Thanks,
> Keith.

> On Jan 10, 2008 7:34 PM, Jeremy Hughes <hu...@apache.org> wrote: 
> Any reason why you didn't click the 'ASF granted license' button on
> the attachment? 
> 
> If it's ok, could you reattach the wsdl, granting the license.
> 
> Thanks,
> Jeremy
> 
> On 10/01/2008, keith chapman < keithgchapman@gmail.com> wrote:
> > Done. https://issues.apache.org/jira/browse/WODEN-193
> >
> > Thanks,
> > Keith.
> >
> >
> > On Jan 10, 2008 3:31 PM, Jeremy Hughes < hughesj@apache.org> wrote:
> > > Hi Keith, could you open a JIRA please.
> > >
> > >
> > > 
> > >
> > > On 10/01/2008, keith chapman <ke...@gmail.com> wrote:
> > > > Hi Guys,
> > > >
> > > > I have a situation where I have a WSDL with some XML as its 
service 
> > > > documentation. Also I do not have a default namespace declared. 
This
> > means
> > > > that the xml that I have within the documentation is not namespace
> > > > qualified. Under this situation Woden throws an error when trying 
to 
> > parse
> > > > the WSDL with the following exception. I've also attached a WSDL 
that
> > causes
> > > > this issue. Do we need a null check in DOMXMLElement that cheks 
this
> > before 
> > > > creating an URI?
> > > >
> > > > Caused by: java.lang.NullPointerException
> > > >         at java.net.URI$Parser.parse(URI.java:3003)
> > > >         at java.net.URI .<init>(URI.java:578)
> > > >         at
> > > >
> > org.apache.woden.internal.DOMXMLElement.doGetNamespaceURI
> > > > (DOMXMLElement.java:101)
> > > >         at
> > > > 
> > org.apache.woden.internal.BaseXMLElement.
> getNamespaceURI(BaseXMLElement.java:80)
> > > >         at
> > > >
> > org.apache.woden.internal.BaseWSDLReader.parseExtensionElement
> > (BaseWSDLReader.java :1532)
> > > >         at
> > > >
> > org.apache.woden.internal.BaseWSDLReader.
> parseDocumentation(BaseWSDLReader.java:472)
> > > >         at
> > > >
> > org.apache.woden.internal.BaseWSDLReader.parseInterfaceOperation 
> > (BaseWSDLReader.java:798)
> > > >         at
> > > > org.apache.woden.internal.BaseWSDLReader.parseInterface
> > > > (BaseWSDLReader.java:663)
> > > >         at
> > > > 
> > org.apache.woden.internal.BaseWSDLReader.parseDescription
> > (BaseWSDLReader.java:429)
> > > >         at
> > > >
> > org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java 
:184)
> > > >         at
> > > >
> > 
org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:229)
> > > >         at
> > > >
> > org.apache.woden.internal.DOMWSDLReader.readWSDL 
(DOMWSDLReader.java:264)
> > > >         at
> > org.apache.woden.internal.DOMWSDLReader.readWSDL
> > > > (DOMWSDLReader.java:126)
> > > >         at
> > > >
> > org.apache.axis2.description.WSDL20ToAxisServiceBuilder.
> readInTheWSDLFile (WSDL20ToAxisServiceBuilder.java:1146)
> > > >         at
> > > >
> > org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(
> > > > WSDL20ToAxisServiceBuilder.java:148)
> > > >         at
> > > >
> > org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.
> <init>(WSDL20ToAllAxisServicesBuilder.java:54)
> > > >         at
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine 
> > > > .<init>(CodeGenerationEngine.java:109)
> > > >
> > > > Thanks,
> > > > Keith.
> > > >
> > > > --
> > > > Keith Chapman
> > > > Software Engineer 
> > > > WSO2 Inc.
> > > > Oxygenating the Web Service Platform.
> > > > http://wso2.org/
> > > >
> > > > blog: http://www.keith-chapman.org
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > woden-dev-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > woden-dev-unsubscribe@ws.apache.org 
> > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > >
> > >
> >
> >
> >
> > --
> >
> > Keith Chapman
> > Software Engineer
> > WSO2 Inc.
> > Oxygenating the Web Service Platform.
> > http://wso2.org/
> >
> > blog: http://www.keith-chapman.org

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org

> 
> 
> 
> -- 
> Keith Chapman
> Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
> 
> blog: http://www.keith-chapman.org 





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Re: Problem parsing a WSDL having XML as the documentation

Posted by keith chapman <ke...@gmail.com>.
Hi Jeremy,

I reattached it granting ASF license.

Thanks,
Keith.

On Jan 10, 2008 7:34 PM, Jeremy Hughes <hu...@apache.org> wrote:

> Any reason why you didn't click the 'ASF granted license' button on
> the attachment?
>
> If it's ok, could you reattach the wsdl, granting the license.
>
> Thanks,
> Jeremy
>
> On 10/01/2008, keith chapman <ke...@gmail.com> wrote:
> > Done. https://issues.apache.org/jira/browse/WODEN-193
> >
> > Thanks,
> > Keith.
> >
> >
> > On Jan 10, 2008 3:31 PM, Jeremy Hughes < hughesj@apache.org> wrote:
> > > Hi Keith, could you open a JIRA please.
> > >
> > >
> > >
> > >
> > > On 10/01/2008, keith chapman <ke...@gmail.com> wrote:
> > > > Hi Guys,
> > > >
> > > > I have a situation where I have a WSDL with some XML as its service
> > > > documentation. Also I do not have a default namespace declared. This
> > means
> > > > that the xml that I have within the documentation is not namespace
> > > > qualified. Under this situation Woden throws an error when trying to
> > parse
> > > > the WSDL with the following exception. I've also attached a WSDL
> that
> > causes
> > > > this issue. Do we need a null check in DOMXMLElement that cheks this
> > before
> > > > creating an URI?
> > > >
> > > > Caused by: java.lang.NullPointerException
> > > >         at java.net.URI$Parser.parse(URI.java:3003)
> > > >         at java.net.URI.<init>(URI.java:578)
> > > >         at
> > > >
> > org.apache.woden.internal.DOMXMLElement.doGetNamespaceURI
> > > > (DOMXMLElement.java:101)
> > > >         at
> > > >
> > org.apache.woden.internal.BaseXMLElement.getNamespaceURI(
> BaseXMLElement.java:80)
> > > >         at
> > > >
> > org.apache.woden.internal.BaseWSDLReader.parseExtensionElement
> > (BaseWSDLReader.java:1532)
> > > >         at
> > > >
> > org.apache.woden.internal.BaseWSDLReader.parseDocumentation(
> BaseWSDLReader.java:472)
> > > >         at
> > > >
> > org.apache.woden.internal.BaseWSDLReader.parseInterfaceOperation
> > (BaseWSDLReader.java:798)
> > > >         at
> > > > org.apache.woden.internal.BaseWSDLReader.parseInterface
> > > > (BaseWSDLReader.java:663)
> > > >         at
> > > >
> > org.apache.woden.internal.BaseWSDLReader.parseDescription
> > (BaseWSDLReader.java:429)
> > > >         at
> > > >
> > org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:184)
> > > >         at
> > > >
> > org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:229)
> > > >         at
> > > >
> > org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:264)
> > > >         at
> > org.apache.woden.internal.DOMWSDLReader.readWSDL
> > > > (DOMWSDLReader.java:126)
> > > >         at
> > > >
> >
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.readInTheWSDLFile(
> WSDL20ToAxisServiceBuilder.java:1146)
> > > >         at
> > > >
> > org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(
> > > > WSDL20ToAxisServiceBuilder.java:148)
> > > >         at
> > > >
> > org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.<init>(
> WSDL20ToAllAxisServicesBuilder.java:54)
> > > >         at
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > > .<init>(CodeGenerationEngine.java:109)
> > > >
> > > > Thanks,
> > > > Keith.
> > > >
> > > > --
> > > > Keith Chapman
> > > > Software Engineer
> > > > WSO2 Inc.
> > > > Oxygenating the Web Service Platform.
> > > > http://wso2.org/
> > > >
> > > > blog: http://www.keith-chapman.org
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > woden-dev-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > woden-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > >
> > >
> >
> >
> >
> > --
> >
> > Keith Chapman
> > Software Engineer
> > WSO2 Inc.
> > Oxygenating the Web Service Platform.
> > http://wso2.org/
> >
> > blog: http://www.keith-chapman.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>


-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Problem parsing a WSDL having XML as the documentation

Posted by Jeremy Hughes <hu...@apache.org>.
Any reason why you didn't click the 'ASF granted license' button on
the attachment?

If it's ok, could you reattach the wsdl, granting the license.

Thanks,
Jeremy

On 10/01/2008, keith chapman <ke...@gmail.com> wrote:
> Done. https://issues.apache.org/jira/browse/WODEN-193
>
> Thanks,
> Keith.
>
>
> On Jan 10, 2008 3:31 PM, Jeremy Hughes < hughesj@apache.org> wrote:
> > Hi Keith, could you open a JIRA please.
> >
> >
> >
> >
> > On 10/01/2008, keith chapman <ke...@gmail.com> wrote:
> > > Hi Guys,
> > >
> > > I have a situation where I have a WSDL with some XML as its service
> > > documentation. Also I do not have a default namespace declared. This
> means
> > > that the xml that I have within the documentation is not namespace
> > > qualified. Under this situation Woden throws an error when trying to
> parse
> > > the WSDL with the following exception. I've also attached a WSDL that
> causes
> > > this issue. Do we need a null check in DOMXMLElement that cheks this
> before
> > > creating an URI?
> > >
> > > Caused by: java.lang.NullPointerException
> > >         at java.net.URI$Parser.parse(URI.java:3003)
> > >         at java.net.URI.<init>(URI.java:578)
> > >         at
> > >
> org.apache.woden.internal.DOMXMLElement.doGetNamespaceURI
> > > (DOMXMLElement.java:101)
> > >         at
> > >
> org.apache.woden.internal.BaseXMLElement.getNamespaceURI(BaseXMLElement.java:80)
> > >         at
> > >
> org.apache.woden.internal.BaseWSDLReader.parseExtensionElement
> (BaseWSDLReader.java:1532)
> > >         at
> > >
> org.apache.woden.internal.BaseWSDLReader.parseDocumentation(BaseWSDLReader.java:472)
> > >         at
> > >
> org.apache.woden.internal.BaseWSDLReader.parseInterfaceOperation
> (BaseWSDLReader.java:798)
> > >         at
> > > org.apache.woden.internal.BaseWSDLReader.parseInterface
> > > (BaseWSDLReader.java:663)
> > >         at
> > >
> org.apache.woden.internal.BaseWSDLReader.parseDescription
> (BaseWSDLReader.java:429)
> > >         at
> > >
> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:184)
> > >         at
> > >
> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:229)
> > >         at
> > >
> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:264)
> > >         at
> org.apache.woden.internal.DOMWSDLReader.readWSDL
> > > (DOMWSDLReader.java:126)
> > >         at
> > >
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.readInTheWSDLFile(WSDL20ToAxisServiceBuilder.java:1146)
> > >         at
> > >
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(
> > > WSDL20ToAxisServiceBuilder.java:148)
> > >         at
> > >
> org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.<init>(WSDL20ToAllAxisServicesBuilder.java:54)
> > >         at
> > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > > .<init>(CodeGenerationEngine.java:109)
> > >
> > > Thanks,
> > > Keith.
> > >
> > > --
> > > Keith Chapman
> > > Software Engineer
> > > WSO2 Inc.
> > > Oxygenating the Web Service Platform.
> > > http://wso2.org/
> > >
> > > blog: http://www.keith-chapman.org
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> woden-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
>
>
>
> --
>
> Keith Chapman
> Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Re: Problem parsing a WSDL having XML as the documentation

Posted by keith chapman <ke...@gmail.com>.
Done. https://issues.apache.org/jira/browse/WODEN-193

Thanks,
Keith.

On Jan 10, 2008 3:31 PM, Jeremy Hughes <hu...@apache.org> wrote:

> Hi Keith, could you open a JIRA please.
>
> On 10/01/2008, keith chapman <ke...@gmail.com> wrote:
> > Hi Guys,
> >
> > I have a situation where I have a WSDL with some XML as its service
> > documentation. Also I do not have a default namespace declared. This
> means
> > that the xml that I have within the documentation is not namespace
> > qualified. Under this situation Woden throws an error when trying to
> parse
> > the WSDL with the following exception. I've also attached a WSDL that
> causes
> > this issue. Do we need a null check in DOMXMLElement that cheks this
> before
> > creating an URI?
> >
> > Caused by: java.lang.NullPointerException
> >         at java.net.URI$Parser.parse(URI.java:3003)
> >         at java.net.URI.<init>(URI.java:578)
> >         at
> > org.apache.woden.internal.DOMXMLElement.doGetNamespaceURI
> > (DOMXMLElement.java:101)
> >         at
> > org.apache.woden.internal.BaseXMLElement.getNamespaceURI(
> BaseXMLElement.java:80)
> >         at
> > org.apache.woden.internal.BaseWSDLReader.parseExtensionElement(
> BaseWSDLReader.java:1532)
> >         at
> > org.apache.woden.internal.BaseWSDLReader.parseDocumentation(
> BaseWSDLReader.java:472)
> >         at
> > org.apache.woden.internal.BaseWSDLReader.parseInterfaceOperation(
> BaseWSDLReader.java:798)
> >         at
> > org.apache.woden.internal.BaseWSDLReader.parseInterface
> > (BaseWSDLReader.java:663)
> >         at
> > org.apache.woden.internal.BaseWSDLReader.parseDescription(
> BaseWSDLReader.java:429)
> >         at
> > org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:184)
> >         at
> > org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:229)
> >         at
> > org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:264)
> >         at org.apache.woden.internal.DOMWSDLReader.readWSDL
> > (DOMWSDLReader.java:126)
> >         at
> >
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.readInTheWSDLFile(
> WSDL20ToAxisServiceBuilder.java:1146)
> >         at
> > org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(
> > WSDL20ToAxisServiceBuilder.java:148)
> >         at
> > org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.<init>(
> WSDL20ToAllAxisServicesBuilder.java:54)
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> > .<init>(CodeGenerationEngine.java:109)
> >
> > Thanks,
> > Keith.
> >
> > --
> > Keith Chapman
> > Software Engineer
> > WSO2 Inc.
> > Oxygenating the Web Service Platform.
> > http://wso2.org/
> >
> > blog: http://www.keith-chapman.org
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>


-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Problem parsing a WSDL having XML as the documentation

Posted by Jeremy Hughes <hu...@apache.org>.
Hi Keith, could you open a JIRA please.

On 10/01/2008, keith chapman <ke...@gmail.com> wrote:
> Hi Guys,
>
> I have a situation where I have a WSDL with some XML as its service
> documentation. Also I do not have a default namespace declared. This means
> that the xml that I have within the documentation is not namespace
> qualified. Under this situation Woden throws an error when trying to parse
> the WSDL with the following exception. I've also attached a WSDL that causes
> this issue. Do we need a null check in DOMXMLElement that cheks this before
> creating an URI?
>
> Caused by: java.lang.NullPointerException
>         at java.net.URI$Parser.parse(URI.java:3003)
>         at java.net.URI.<init>(URI.java:578)
>         at
> org.apache.woden.internal.DOMXMLElement.doGetNamespaceURI
> (DOMXMLElement.java:101)
>         at
> org.apache.woden.internal.BaseXMLElement.getNamespaceURI(BaseXMLElement.java:80)
>         at
> org.apache.woden.internal.BaseWSDLReader.parseExtensionElement(BaseWSDLReader.java:1532)
>         at
> org.apache.woden.internal.BaseWSDLReader.parseDocumentation(BaseWSDLReader.java:472)
>         at
> org.apache.woden.internal.BaseWSDLReader.parseInterfaceOperation(BaseWSDLReader.java:798)
>         at
> org.apache.woden.internal.BaseWSDLReader.parseInterface
> (BaseWSDLReader.java:663)
>         at
> org.apache.woden.internal.BaseWSDLReader.parseDescription(BaseWSDLReader.java:429)
>         at
> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:184)
>         at
> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:229)
>         at
> org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:264)
>         at org.apache.woden.internal.DOMWSDLReader.readWSDL
> (DOMWSDLReader.java:126)
>         at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.readInTheWSDLFile(WSDL20ToAxisServiceBuilder.java:1146)
>         at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(
> WSDL20ToAxisServiceBuilder.java:148)
>         at
> org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.<init>(WSDL20ToAllAxisServicesBuilder.java:54)
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> .<init>(CodeGenerationEngine.java:109)
>
> Thanks,
> Keith.
>
> --
> Keith Chapman
> Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org