wsdl file extraction service from the list of ofbiz ServiceList.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

wsdl file extraction service from the list of ofbiz ServiceList.

SelmaoO
Hi,

I installed ofbiz-4.10.02 from the official site .. I can access the list of services with ofbiz https://localhost:8443/webtools/control/ServiceList this link ... in this list there any services offerent by ofbiz ..... for example, I want to use the service "getPerson" by a call from a java client as it is already explained in this "famous" link "https:// cwiki.apache.org / OFBIZ / ofbiz-calling-services-from-liferay-using-soap.html "as follows:
************************************************** *********
service.web.ofbiz package;
import java.net.URL;
org.apache.axis.client.Call import;
org.apache.axis.client.Service import;
{public class ServiceCall
ServiceCall public String (String OrderId) {
String output = null;
String endpoint, inputParam, username, password;
inputParam = OrderId;
try {
endpoint = "!!!!!!!!!!!!!!!" ;/ / here / / what do I put in?!!!
username = "admin";
password = "ofbiz";
Call call = (Call) new Service (). CreateCall ();
call.setTargetEndpointAddress (new URL (endpoint));
call.setOperationName (new javax.xml.namespace.QName ("getOrderStatus"));
call.addParameter ("orderId" org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
call.addParameter ("login.username" org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
call.addParameter ("login.password" org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
call.setReturnType (org.apache.axis.Constants.SOAP_STRING);
Call.invoke Object response = (new Object [] {inputParam, username, password});
output = (String) response;
try {
System.out.println (output);
}
catch (Exception e) {
e.printStackTrace ();
}
} Catch (Exception e) {
e.printStackTrace ();
}
return output;
}
}
************************************************** ********
so my question is what the value of the variable endpoint?! I have to put in it?
Another think, when I clicked on the service getPerson I have this image below ..... which there are the output and input parameters that I have to use the java client code not ?


Please anyone can help me how i can use these services ? what's the value of the variable endpoint?!! how can i extract WSDL file from services of ofbiz?!!

i'm waiting for your help !the image of service getperson

Cheers
selma
Don't allow yourself to wake up with yesterday's issues troubling your mind.Refuse to live backwards,see everyday as a new chapter.Have the courage to follow your heart and intuition for they already know what you want to become.In your heart of heart's you know what needs to be done.