error consuming web service.

I am getting below error message while consuming the web service.

Error message:

Prepping For Call 0 …javax.xml.rpc.ServiceException: Error processing WSDL document:

javax.xml.rpc.ServiceException: Error processing WSDL document:

javax.xml.rpc.ServiceException: Cannot find service:

at org.apache.axis.client.Service.initService(

at org.apache.axis.client.Service.(


Exception in thread “main”

Code :

The error message is telling you where to start your troubleshooting. Focus your efforts on resolving this:

javax.xml.rpc.ServiceException: Cannot find service:

the web service url
[url][/url] is accessible/ viewed from the system where I am trying to execute the java code to consume the service…

------------------- instantiating Service is failing, code attached. -----

import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Hashtable;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceException;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import com.adminserver.utl.ASExceptionUtl;
public class WiseWebserviceTest {
public static void main( String args[] ) throws ASExceptionUtl, RemoteException, ServiceException, MalformedURLException {
String returnValue = null;
String endPointURL = “”;
String operationName = “invokeAutoCaseStart”;
String targetNamespace = “”; //IngAdminServerCaseStartWise/invokeAutoCaseStart";
String wsdlUrl = “”;
String serviceName = “IngAdminServerCaseStartWiseService”;
String portName = “IngAdminServerCaseStartWisePort0”;
String parameterName = “RequestXML”;
Collection parameters = null;
String XML[] = new String[2];
XML[1] = “LIFE001ADMSVRREQAPSTranslation of APS Status Code Number (let’s use #10–DELAY/PROBLEM–SEE COMMENT)NIGOWORKITEMKAREN 13LF230”;
for( int x = 0; x < XML.length; x++ ) {
System.out.print( "Prepping For Call " + x + “\t…” );
Service service = new Service( new URL( wsdlUrl ), new QName( targetNamespace, serviceName ) );
Call call = ( Call )service.createCall( new QName( targetNamespace, portName ), operationName );
call.setTargetEndpointAddress( endPointURL );
call.setUsername( “wm” );
call.setPassword( “wm” );
System.out.println( “Done!” );
System.out.print( “Loading Data into Call\t…” );
System.out.println( “Done!” );
System.out.println( “XML[” + x + “]:” );
System.out.println( XML[x] );
System.out.print( “Sending Request " + x + " to Pais\t…” );
returnValue = ( String )call.invoke( new Object[]{ XML[x] } );
System.out.println( “Done!” );
System.out.println( “Response:” );
System.out.println( returnValue );

Okay. But that’s not the URL that the exception stack is listing.
Given that this is most likely a coding issue on the Java side, this probably isn’t the right forum for this post. You might have better feedback from the Java Technology Forums or an Axis forum.