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:
{http://stl237003.us.americas.intranet:5555/soap/rpc_esp}IngAdminServerC
aseStartWiseService

at org.apache.axis.client.Service.initService(Service.java:250)

at org.apache.axis.client.Service.(Service.java:204)

at com.ing.test.ws.WiseWebserviceTest.main(WiseWebserviceTest.java:61)

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:
{http://stl237003.us.americas.intranet:5555/soap/rpc_esp}IngAdminServerCaseStartWiseService

the web service url
[url]http://stl237003.us.americas.intranet:5555/IngAdminServerCaseStartWise/invokeAutoCaseStart.wsdl[/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. -----

package com.ing.test.ws;
import java.net.MalformedURLException;
import java.net.URL;
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 = “http://dev-ia3esp.us.americas.intranet/soap/rpc_esp”;
String operationName = “invokeAutoCaseStart”;
String targetNamespace = “http://dev-ia3esp.us.americas.intranet”; //IngAdminServerCaseStartWise/invokeAutoCaseStart";
String wsdlUrl = “http://stl237003.us.americas.intranet:5555/IngAdminServerCaseStartWise/invokeAutoCaseStart.wsdl”;
String serviceName = “IngAdminServerCaseStartWiseService”;
String portName = “IngAdminServerCaseStartWisePort0”;
String parameterName = “RequestXML”;
Collection parameters = null;
String XML[] = new String[2];
XML[0] = “LIFE001ADMSVRREQINSPGot A new LabReqRecvdWORKITEMKAREN 10LF230”;
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.