Click here to Skip to main content
14,920,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi they

public GetStationsResponseType getStations() throws RemoteException {
	// TODO Auto-generated method stub
	if(farePortType == null)
		_initFarePortTypeProxy();
	return farePortType.getStations();
}

@Override
public GetFareResponseType getFare(GetFareRequestType parameters)
		throws RemoteException {
	if(farePortType == null)
		_initFarePortTypeProxy();
	return farePortType.getFare(parameters);
}


I am using proxy class to retieve data which is response type the above code does seem to work so hw to i call this method to retrieve information from the webservice via WSDL

regards

Arun
Posted

Hi Arun,

You can't actually call methods on a WSDL file; the WSDL simply describes the operations on the web service.

Thankfully, it should expose the service and it's operations to you, but you'll need to build a stub or proxy class to make that work.

Here's an older article[^] that may help you out.

Cheers.
   
Comments
aarun744 30-Oct-11 5:03am
   
Hi They

Thank you for the reply, the information you provided was helpful. I was stub and proxy classes using auto generated eclipse. I trying to test my operation it does not return any values.
Collapse | Copy Code

org.apache.jasper.JasperException: An exception occurred processing JSP page /Webassign2/test2.jsp at line 25

22: String getDest = request.getParameter("destin");
23: farecalculator.setDestinationStation(getDest);
24: farecalculator.setSourceStation(getsource);
25: String getFarePortType10mtemp = sampleAreaServiceProxyid.getFare(farecalculator).getCurrency();


this error i get when i compile.Hoping for some help.

Regards

Arun
Hi They

Thank you for the reply, the information you provided was helpful. I was stub and proxy classes using auto generated eclipse. I trying to test my operation it does not return any values.
C#
org.apache.jasper.JasperException: An exception occurred processing JSP page /Webassign2/test2.jsp at line 25

22:    String getDest = request.getParameter("destin");
23:    farecalculator.setDestinationStation(getDest);
24:    farecalculator.setSourceStation(getsource);
25:    String getFarePortType10mtemp = sampleAreaServiceProxyid.getFare(farecalculator).getCurrency();


this error i get when i compile.Hoping for some help.

Regards

Arun
   
Comments
[no name] 30-Oct-11 2:04am
   
If these are more details about your Question, Then request you to move it to your Question-Section using link "Improve question".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900