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