Suspected WSDL problem

26 views
Skip to first unread message

Jason Purcell

unread,
Nov 10, 2010, 7:44:54 AM11/10/10
to CTJUG...@googlegroups.com
Hi there...

I am using JAX-WS in Netbeans to generate my classes from a WSDL supplied to me by someone else.

When I try to do a call, I get the following error:

java.lang.IllegalArgumentException: getNamespaceURI(String prefix) is called with a null prefix.
        at com.sun.xml.stream.XMLReaderImpl.getNamespaceURI(XMLReaderImpl.java:1231)
        at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.getNamespaceURI(XMLStreamReaderFilter.java:244)
        at com.sun.xml.ws.wsdl.parser.ParserUtil.getQName(ParserUtil.java:80)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseMessage(RuntimeWSDLParser.java:779)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:316)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:146)
        at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:254)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:217)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:174)
        at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
        at javax.xml.ws.Service.<init>(Service.java:56)

But if I use soapUI then I can do a successful call by creating the XML manually.

The WSDL is generated manually, which I think is the problem.

Any ideas?

Kind regards,
Jason.

Martin Gross

unread,
Nov 10, 2010, 8:35:52 AM11/10/10
to ctjug...@googlegroups.com
Looks like a namespace problem as the stack trace suggests. Probably
in the generated XML for the request.

Regards,
Martin

> --
> You received this message because you are subscribed to the Google Groups
> "CTJUG Tech" group.
> To post to this group, send email to CTJUG...@googlegroups.com
> To unsubscribe from this group, send email to
> CTJUG-Tech+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/CTJUG-Tech?hl=en
> For Cape Town Java User Group home page see http://www.ctjug.org.za/
> For jobs see http://jobs.gamatam.com/

Jason Purcell

unread,
Nov 12, 2010, 2:24:39 AM11/12/10
to ctjug...@googlegroups.com
It seems the namespace URI's are not specified, as the error message says, but the standard doesn't seem to be too clear on that: http://en.wikipedia.org/wiki/XML_namespace

I asked them to add the URI's so I will see if that solves the problem.
Reply all
Reply to author
Forward
0 new messages