Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getPort() and QName namespace problem  RSS feed

 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!