• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getPort() and QName namespace problem

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
I have managed to generate the necessary stub files using wscompile and am now at the point where I'm trying to get a port and send some data...
public static void sendDesign(String urlString)
{
try
{
DesignContainer oDesignContainer = new DesignContainer();
oDesignContainer.setWdID(12);
oDesignContainer.setWiObjectType(2);
oDesignContainer.setWiXLocation(34);
oDesignContainer.setWiYLocation(34);
oDesignContainer.setWbIsNew(false);
oDesignContainer.setWsDescription("This is the description again in java");
oDesignContainer.setWsName("This is the name from java.");
oDesignContainer.setWsText("This is the text from java");
Stub stub = createProxy();
FireflyDesignSubmissionSoap_Stub please = (FireflyDesignSubmissionSoap_Stub)stub;
please.addDesignContainer(oDesignContainer);
}
catch (Exception error)
{
error.printStackTrace();
}
}
private static Stub createProxy()
{
try
{
return (Stub) (new FireflyDesignSubmission_Impl().getPort(FireflyDesignSubmission_Impl().getServiceName(), new FireflyDesignSubmission_Impl().getClass()));
}
catch (Exception error)
{
error.printStackTrace();
}
return null;
}
The problem is that in my createProxy() method (as per the hello world example in the web services pack), I don't have a getPort() method that takes no arguments. Have I done something wrong in generating the files?
Also, if I use this code, I get the following compile error:
"ServiceData.java": Error #: 314 : cannot access class javax.xml.namespace.QName; class not found: class javax.xml.namespace.QName at line 61, column 172
ServiceData.java is the name of the class containing the above code. Can anyone help?... I think I'm really really close, I just can't make that final bit...
Thanks in advance.
Steve
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That error sounds like what you get when your system has an older XML parser library hanging around.
Bill
 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm still a bit new to java. I'm not sure how I get rid of an old library... I've installed Java SE, EE and the web services development pack. I'm using JBuilder SE, so maybe it's using one of its own librarys.
Any help in terms of where to start looking would be greatly appreciated.
Cheers,
Steve
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JBuilder SE installation is where I would look first. You could do a file search for files with .jar type - if you find anything suspicious open it with WinZip and see if there are any javax.xml.* classes therein.
Bill
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic