Revamp Java Web Service code after WSDL creation

//Code sample #1
//BEFORE: Web Service code in its entirety, prior to Provider WSDL creation
public class DominoTestWebService { 
	//TODO: modify this Web Service after WSDL creation
	//return txt variable

	//Code will likely change after Service has been finalized

    public String HelloWorld (String txt) { 
        return "Hello " + txt; 

//Code sample #2
//AFTER: Web Service code without String "Hello " + txt, Provider WSDL created at this point
public class DominoTestWebService {
	public java.lang.String helloWorld(java.lang.String txt) {

        //null, in this case, will be returned when you run the JavaAgent to consume this Provider Servcice
		return null; [Add txt instead of null]


Use this information to troubleshoot instances where your Web Services, similarly to the following:, return null when called from your JavaAgent-  

It looks like when a Provider Web Service is created the code that it is created with (depending on the Environment) gets modified and does behave differently-  In this is the case for you, code sample #1 needs to be modified as code sample #2, see above-  Rest assured, you will be able to go back and revamp the code, and your actual Service WSDL will not be affected-  

Side Note: Caution, you want to get properties data worked out for this Provider first prior to entering WSDL to modify the URL (localhost or ServerName of choice), which you will need to do to append Service name-  Added info about this can be found in the URL posted in this XSnippet-  If you update the WSDL then try to do properties work, you may be unable to save your work, which means you will need to start from scratch-  I have yet to figure out how to bypass this issue without creating a new file to restart the process-

See Web Service Consumer and Provider Apps upload soon, after the Pokémon Project, currently onGoing to be released in the coming weeks-  Stay Tuned!

Köll S Cherizard
August 16, 2017 10:09 PM

All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.

No comments yetLogin first to comment...