Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > wsdl qname

Reply
Thread Tools

wsdl qname

 
 
Mike Gaab
Guest
Posts: n/a
 
      01-28-2006
I can't seem to get the parameter correct for retrieving
a Message from a Definition.

Here is a snippet from the wsdl file.

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="HelloService"
targetNamespace="http://www.ecerami.com/wsdl/HelloService.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.ecerami.com/wsdl/HelloService.wsdl"
xmlnss="http://www.w3.org/2001/XMLSchema">
...
<message name="SayHelloRequest">
<part name="body" element="tns:SayHello_"/>
</message>
....

Here is a snippet from the code:

Parser p = new Parser();
p.run("awsdl filename");
Definition d = p.getCurrentDefinition();
String qnStr =
"{http://www.ecerami.com/wsdl/HelloService.wsdl}SayHelloRequest";
//I have also tried just "SayHelloRequest", still a null is output.
QName qn = new QName(qnStr);
Message m = def.getMessage(qn);

System.out.println(m);

After executing the above I get a null as output.

Thanks, Mike



----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
webservices, wsdl & xsd (schema-2-wsdl) Dark Java 1 11-14-2008 07:58 PM
WSDL file produces useless class when imported with WSDL.exe RH ASP .Net Web Services 1 05-27-2004 09:40 PM
Determining QName from a URIref in RDFS John L. Clark XML 0 01-22-2004 08:02 PM
is the w3c's schema for wsdl and wsdl/soap binding possibly buggy ? _clb_ Chris Bedford XML 0 08-20-2003 11:52 PM
WSDL.EXE: WSDL Import Directive Stephen Edgecombe ASP .Net Web Services 0 08-13-2003 06:38 AM



Advertisments