Glue calling is web service

Hi, All.

I’m trying to invoke webMethods web-service via glue.
I use Registry.bind(url …)
where url is http://remoteserver… (the wsdl of the webservice in
WebMethods Integration Server)

Somehow it throws me error in binding to the remote url. I’ve already
made the service to be anonymous.
If I export the wsdl file from the IS and put the wsdl file locally,
and call the service using that wsdl file:

Registry.bind(“file:d:/processManager.wsdl”)

it works! In this project I need to access the url from remote server
as (http://…) because we have different remoteserver need to be
access and we want the URL to be able to be passed dynamically.

The wsdl - URL comes from WMWSService package from WebMethods IS.

Error is something like this:
electric.registry.RegistryException: could not bind to path:
http://devwmd001:5560/WmWSTools/directory/wsd.dsp?
interface=BW_GenericFTP.services&service=processManager
at electric.soap.registry.SOAPRegistry.bind(Unknown Source)
at electric.registry.compound.CompoundRegistry.bind(Unknown
Source)
at electric.registry.Registry.getReference(Unknown Source)
at electric.registry.Registry.getProxy(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at com.bigw.generic.bigwDFTP.works.RemoteExec.execWMService
(RemoteExec.java:241)
at
com.bigw.generic.bigwDFTP.test.RemoteExecTest.testExecWMService
(RemoteExecTest.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected
(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:421)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:305)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:186)
Caused by:
electric.http.authentication.ClientAuthenticationException: no
credentials for realm null
at electric.http.HTTPMessage.authenticateRealm(Unknown Source)
at electric.http.HTTPMessage.postAuthenticate(Unknown Source)
at electric.http.HTTPMessage.send(Unknown Source)
at electric.http.OutboundHTTPRequest.send(Unknown Source)
at electric.http.OutboundHTTPRequest.get(Unknown Source)
at electric.http.loader.HTTPResourceLoader.loadResource
(Unknown Source)
at electric.util.resourceloader.ResourceLoaders.loadResource
(Unknown Source)
at electric.wsdl.parser.WSDLParser.newWSDL(Unknown Source)
at electric.wsdl.loader.WSDLLoader.obtainWSDLBypassingCache
(Unknown Source)
at electric.wsdl.loader.WSDLLoader.getWSDL(Unknown Source)

Check in the WmRoot package for the above mentioned service.This package normally will be in disabled state since it is WM used internal package.

Hi Experts,

  1. Is there any way we can monitor Webservices??

  2. How to check whether SOAP processor is UP or DOWN??
    pub.soap does not have for monitoring

  3. How to check the status of Trigger or how to monitor Trigger??
    if anybody knows which JavaAPI are used or has some sample code kindly share it.

My Environment is WM6.1, WinXP, Dev 6.1

Regards,
Puneet Saxena

Dear Puneet,

You can use

wm.server.triggers.getProcessingStatus or
wm.server.triggers.getRetrievalStatus services by passing the Trigger namespace as input. The output may be active or throws an exception is the trigger is not active.

With Regards,
Navaneetha

This service is available in WmRoot.

Puneet,

To determine whether the IS default or rpc soap processor is “up”, I would suggest creating a simple server ping service or exposing the one that already exists in IS as a web service.

Your monitoring software would invoke the server ping web service on some regular interval to determine whether the soap processor was receiving and processing requests. Since many monitoring utilities don’t yet understand how to invoke web services you may have to create a simple java (or Glue) client that does so and that can be executed from the monitoring package.

Mark

Hi,
Thanks Navanee/Mark.
Navanee, in which version of WM you have WMRoot containing above mentioned services, here we have WM6.1 it only has wm.server.triggers.createTrigger & wm.server.triggers.deleteTrigger services.
Is there any SP needs to be installed for that??

Mark, it would be great if you tell any server ping service or exposing the one that already exists in IS ??
and How to create a java client which will invoke server ping web service?
Kindly be explicit

Regards,
Puneet Saxena

Dear Puneet,

You enable WmRoot package and from there you access the above said service.

With Regards,
Navanee

Dear Navanee,

WmRoot is already enabled.
Jus checked my WM6.5 installation, all the services(wm.server.triggers) which you specified are there.
Wm6.1 WmRoot does not have these services under abovementioned namespace.

Regards,
Puneet Saxena

Hi,

In my machine I am able to see that. Let me know what are the services are able to see

With regards,
Navanee