Invocation of a DOT NET Service

Hi All,

I am using Mediator version 7.2.1 and trying to invoke the DOT NET Service from the net but i could not.

So i have two questions on this regard
1) how to set the proxy setting
2) can we invoke a Dot NET Service from mediator, if so can you provide me with documentation/help on how to achieve this. How is DOT NET Service program different from Java Web Service.

Thanks and Regards,
Nagesh.

Hi;

if you look in the “XML Gateways” forum for the topic “SOAP Gateway Time-Out” you will find the answer to your first question regarding Mediator proxy settings.
As to “.NET Service”, I would not be sure; but if it is a web Service (i.e. has a WSDL file) you should be able to use the SOAP gateway to call it.
You should try to upgrade to Mediator v7.3, you will be pleasantly surprised by the new GUI (Mediator Studio) and the heap of new sequence components, among other improvements.

Hi,

I tried invoking this http://www.xmlwebservices.cc/ws/v1/time/TimeService.asmx service from mediator, but i am getting the following error message in the mediator log.

The log says Axis:inoke Connection time out, i have set the proxy setting in mediator, and i checked my proxy server log but could not find the entry for this service, so its confirmed that the request did not reached proxy. so i feel that the proxy setting i have done r not taken by the mediator,

i have set -Dhttp.proxyHost=“10.60.16.111” -Dhttp.proxyPort=“3128” in launchGUI.bat, startFactoryCommand.bat and startHostManagerCommand.bat files.

can any one plz help me out, what could be the problem.

Log Trace : …
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsd=“XML Schema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
soapenv:Bodytrue </soapenv:Body>
</soapenv:Envelope>
client.AxisClient[slf5s.CATEGORY] - Enter: AxisClient::invoke[slf5s.MESSAGE]
client.AxisClient[slf5s.CATEGORY] - EngineHandler: null[slf5s.MESSAGE]
axis.SimpleChain[slf5s.CATEGORY] - Enter: SimpleChain::invoke[slf5s.MESSAGE]
i18n.ProjectResourceBundle[slf5s.CATEGORY] - org.apache.axis.i18n.resource::handleGetObject(enter00)[slf5s.MESSAGE]
http.HTTPSender[slf5s.CATEGORY] - Enter: HTTPSender::invoke[slf5s.MESSAGE]
http.HTTPSender[slf5s.CATEGORY] - java.net.ConnectException: Connection timed out: connect[slf5s.MESSAGE]
axis.SOAPPart[slf5s.CATEGORY] - Enter: SOAPPart ctor(FORM_FAULT)[slf5s.MESSAGE]
i18n.ProjectResourceBundle[slf5s.CATEGORY] - org.apache.axis.i18n.resource::handleGetObject(setMsgForm)[slf5s.MESSAGE]
axis.SOAPPart[slf5s.CATEGORY] - Setting current message form to: FORM_FAULT (currentMessage is now org.apache.axis.AxisFault)[slf5s.MESSAGE]
axis.SOAPPart[slf5s.CATEGORY] - Exit: SOAPPart ctor()[slf5s.MESSAGE]
i18n.ProjectResourceBundle[slf5s.CATEGORY] - org.apache.axis.i18n.resource::handleGetObject(exception00)[slf5s.MESSAGE]
client.AxisClient[slf5s.CATEGORY] - Exception:[slf5s.MESSAGE]
utils.NSStack[slf5s.CATEGORY] - NSPush (32)[slf5s.MESSAGE]
i18n.ProjectResourceBundle[slf5s.CATEGORY] - org.apache.axis.i18n.resource::handleGetObject(empty00)[slf5s.MESSAGE]
utils.NSStack[slf5s.CATEGORY] - NSPop (empty)[slf5s.MESSAGE]
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection timed out: connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:124)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:129)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2526)
at org.apache.axis.client.Call.invoke(Call.java:2515)
at org.apache.axis.client.Call.invoke(Call.java:1637)
at com.softwareag.xbridge.soapgateway.SoapGatewayImpl.modify(Unknown Source)
at com.softwareag.xbridge.infrastructure.ModifierProxy.modify(Unknown Source)
at com.softwareag.xbridge.sequencer.KeywordSTEP.execute(Unknown Source)
at com.softwareag.xbridge.sequencer.SequencerImpl.b(Unknown Source)
at com.softwareag.xbridge.sequencer.SequencerImpl.dispatch(Unknown Source)
at com.softwareag.xbridge.infrastructure.DispatcherImpl$MessageDispatcher.perform(Unknown Source)
at com.softwareag.xbridge.util.WorkerThread.run(Unknown Source)


java.net.ConnectException: Connection timed out: connect
at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2526)
at org.apache.axis.client.Call.invoke(Call.java:2515)
at org.apache.axis.client.Call.invoke(Call.java:1637)
at com.softwareag.xbridge.soapgateway.SoapGatewayImpl.modify(Unknown Source)
at com.softwareag.xbridge.infrastructure.ModifierProxy.modify(Unknown Source)
at com.softwareag.xbridge.sequencer.KeywordSTEP.execute(Unknown Source)
at com.softwareag.xbridge.sequencer.SequencerImpl.b(Unknown Source)
at com.softwareag.xbridge.sequencer.SequencerImpl.dispatch(Unknown Source)
at com.softwareag.xbridge.infrastructure.DispatcherImpl$MessageDispatcher.perform(Unknown Source)
at com.softwareag.xbridge.util.WorkerThread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:124)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:129)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
… 14 more

Hi Nagesh,

You should enter the proxy properties in the Administration Console (System Management Hub) under Factories//Configuration/General. There is an item labeled “JVM Options” that will be used to start the Component Factory.

Best regards,
Mike

Hi Mike,

To which version of mediator are you refering to, i am using 7.3 and i could not locate the specified location.

But i found the JVM -X Options under Factories/DefaultComponentFactory/Config Information, when i tried setting the -Dhttp.proxyHost=“xxx.xxx.xxx.xxx” -Dhttp.proxyPort=“xxxx” the factory does not start.

please help me in this regard,

Nagesh.

Hi Nagesh;

That is the correct option. My line looks like this:

-Xms64m -Dhttp.proxyHost=httpprox.software-ag.de -Dhttp.proxyPort=8080

quotes around the values are ignored, however nake sure there is no space between the switch (-D, -X) and the property name.