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.

-- 
You received this message because you are subscribed to the Google Groups 
"CTJUG Tech" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
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/

Reply via email to