cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Input Adapter - configuration

Former Member
0 Kudos

Hi,

I tried to follow this tutorial: Web Services Adapter Example - SAP Event Stream Processor - SCN Wiki

but I have a problem with subsribe.bat, when i run it, it appears:

  • I suppose the problem is that I'm not running node on port 19011, but I don't know how to start it, could you please help me?
  • I also tried to follow another tutorial (Image: tutorial), in step 6,7 I set

          name=sybase

          password=sybase

  • I uncommented in adapter_config.xml, like this:
<!--Uncomment the following 2 elements when you use 'start_adapter[.bat|.sh]' -->
<ProjectName>StockTraderProject</ProjectName>
<StreamName>tradesIn</StreamName>

</EspPublisherParameters>

  • When I run start_node.bat I've got error. I posted in txt file in attachment.

Thank you for your help!

Jan Bednar

Accepted Solutions (1)

Accepted Solutions (1)

RobertWaywell
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Jan,

First question is whether you are using ESP or SDS?

Do you have a specific reason to use SOAP instead of either REST or Websockets? For continuously streaming data Websockets is the recommended web service interface as it is far more scalable than either REST or SOAP. If your input data is generating only 1 or a few events from a given source, for example when tracking web page clicks, then REST would be the recommended interface.

Thanks

Former Member
0 Kudos

Hi Robert,

I'm using ESP, version: Version: 5.1.110.00/20151206.1/SP11/winnt/x86_64/64-bit/OPT/Sun, Dec 06, 2015  5:41:30 PM

We decided to use SOAP, because we are using SOAP in other services.

Is it possible just to change setting of ports from 19011 to 9786? Because we have just node running on 9786.

Thank you.

RobertWaywell
Product and Topic Expert
Product and Topic Expert
0 Kudos

The default SOAP port is 9090. It is set in the wsp.xml configuration file in $STREAMING_HOME/wsp.

I understand using SOAP because you have existing SOAP services but you should be aware that it will be less scalable than either REST or Websockets.

Former Member
0 Kudos

Hi Robert,

we have port set to 9090.

Thank you for your information.

I accidentaly used tutorial for ESP SP04 but we have SP11. I'm trying to set Discovering Schema and Creating a Mapping File for the SOAP Adapter. Here is link to tutorial: http://help.sap.com/Download/Multimedia/zip-esp_51sp11/esp_developer_guide.pdf I'm using WebserviceX.NET :: XML Web Services solution provider&lt;/title&gt; &lt;META HTTP-EQUIV=&quot;Conten... for getting WSDL file. This is my adapter config:

I got this error:

04-01-2016 16:50:59.351 ERROR [main] (SOAPTransporter.getTables) Unable to get discovery tables

java.lang.Exception: Failed to generate stub classes from all available URLs.

    at com.sap.esp.adapter.ws.soap.transporter.SOAPTransporter.generateStubs(SOAPTransporter.java:133)

    at com.sap.esp.adapter.ws.soap.transporter.SOAPTransporter.getTables(SOAPTransporter.java:538)

    at com.sap.esp.adapter.ws.soap.Discoverer.discover(Discoverer.java:44)

    at com.sap.esp.adapter.ws.soap.Discoverer.main(Discoverer.java:145)

Do you know what can be a problem?

Thank you

Jan

former_member217348
Participant
0 Kudos

Hi Jan,

The problem is that you have not set a value for the Adapter Mapping file. This setting is required for doing Discovery, because this file name is the destination file: when you do Discovery, and you choose the schema, the results get populated into this mapping file that you have specified.

Thanks,

Alice

Former Member
0 Kudos

Hi Alice,

Okay, so I should use


c:\SAP_ESP_5.1\ESP-5_1\adapters\webservices\examples\input\stockTraderMappings.xml

?

I thought that one is just for your example. I also tried that one but I have problems with TomCat and I don't want to use it at all, I just tried the example.

So I can use this Mapping file as default for all variants?

Thank you,

Jan

Former Member
0 Kudos

Hi Alice,

We finally made SOAP Input Adapter work. Problem was in discoveryServiceName, that I haven't changed properly.

Thank you for your help.

Jan

Answers (0)