cancel
Showing results for 
Search instead for 
Did you mean: 

How to call Web service

Former Member
0 Kudos

Hi,

I want to use a Web service as a data service within Visual Composer. Therefore I tried to click on <b>"Define Web service system"</b>. In the following PopUp I have to insert a <b>system name</b>, a <b>system alias</b> and the <b>Web service url</b>. Unfortunatly I don't know what to put in. The only thing I know is that the url of the Web service is either http://pc1239:50000/ReportSearch/Config1?wsdl or http://pc1239:50000/ReportSearch/Config1?style=document? What do I have to insert in the fields <b>system name</b> and <b>system alias</b>? And which one of the two urls is the right one?

Thanks and regards,

Marc

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Trying to bring this topic back to life as i am stuck at the exact same point (SSO error when i create & test a a system via the system landscape / Invalid URL when i do it through the VC itself)

Any suggestions on how to solve this?

Former Member
0 Kudos

Hi,

Check the below links

[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/webServiceInvalid+URL]

[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/prerequisitesfortroubleshootingWeb+Services]

-Govindu

sridhar_k2
Active Contributor
0 Kudos

Hi Marc,

I don't think we can directly create a web service System from VC.

If you want to web service to call from VC, you need to create a system from Portal. Then that system will shown in VC at " FindData -> Systems ".If you select that system, then it will give the all the methods from that service.

If there any other process to call Service directly from VC, Please let me know.

Thanks,

Sridhar

Message was edited by: Sridhar kanchanapalli

Former Member
0 Kudos

Hi Sridhar,

after you post, I wasn't very sure - so I checked.

You actually CAN create a Web-Service through VC, without the need of defining it first through portal.

I used the "Define Web Service", and entered : "http://www.webservicex.net/globalweather.asmx?WSDL" as the WS address, along with the required values.

and pressed "Create"

Afterwards - I checked through portal under System Admin-> System Config, and the required System was CREATED in the PCD under Portal Content -> Visual Composer.

ch_loos
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Amir,

I have done what you described, and I can see the system in the Portal Content.

However, in VC there is still no system showing.

Do you have any idea?

Christian

Former Member
0 Kudos

Make sure you create a system alias, and then do a connection test. Does the connection test succeed?

ch_loos
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks Prakash, I created a second alias and now I can see the system in VC (both aliases actually, quite strange).

Now when I try to add an operation to my project I get an error "Failed to fetch metadata" and something with "not found".

Former Member
0 Kudos

Turn off the option to cache your data services in the options in Visual Composer. Then delete your second alias. Try again.

ch_loos
Product and Topic Expert
Product and Topic Expert
0 Kudos

ok, the cache option didn't help but I got it working by dropping the container outside my layer first and then dragging it inside. If I drop it straight inside the layer I get the error...

Former Member
0 Kudos

Hi there Christian,

I had been getting the same error about the MetaData thing and tried what you said about dropping it outside the layer first and then dragging it in. It hasnt worked for me...did you find out what was causing the original error?

T00Th

Former Member
0 Kudos

Just a note about layers. You cannot drag and drop a layer over an object. You must drag and drop an object into the layer. You can only drag and drop into the layer from the storyboard, not from the find data service directly.

Former Member
0 Kudos

Here are details about setting up and using web services and some examples:

/people/prakash.darji/blog/2006/10/10/external-web-service-proxy-configuration-for-visual-composer

Former Member
0 Kudos

Hello,

I try to invoke a SAP ABAP System generated WSDL which is like in that format:

<a href="http://us4289.wdf.sap.corp:50077/sap/bc/srt/rfc/sap/Z_BAPI_TEST?sap-client=000&wsdl=1.1">http://us4289.wdf.sap.corp:50077/sap/bc/srt/rfc/sap/Z_BAPI_TEST?sap-client=000&wsdl=1.1</a>

It can be invoked by the Java AS -> Web Service Navigator. I can enter the user and password which I have in that SAP System and can execute the Web Service.

However when I try to test the system alias for Web Services within the SAP Portal I get the error:

<b>Connection failed. Make sure that Single Sign-On is configured correctly</b>

Although I can only configure username and password as logon method. So I tried to use the provided functionality within VC: "Define Web Service Data". After I tried to save I get this error message:

<b>Invalid Web Service URL</b>

Do you have already any experiences with that or recommendation how I can use generated ABAP Web Service Definition?

Thank you very much.

Kind regards.

Tadeusz

Former Member
0 Kudos

Where can I define to use web services in the menu? Which VC version do I need?

Thanks in advance,

ANJA

Former Member
0 Kudos

Web Services are available with Visual Composer 2004s SPS7.

Former Member
0 Kudos

Finally I got the right Visual Composer Service Pack. Now I concern myself on how to handle a xml string output from the webservice?

What can I do with the data store connector?

former_member193545
Active Participant
0 Kudos

Hi

Have you created a web service system. You should do this from the portal, you can need to enter the WSDL for the web service.

Jarrod Williams

Former Member
0 Kudos

The data store allows you to store "global variables". If you have a value you need to save the state of, you can store in the data store and retrieve it in other parts of your model.

Former Member
0 Kudos

Hi Jarrod,

I've created the webservice in Visual Composer, is there a need to do it in the Portal? I like to use this <a href="http://www.webservicex.net/globalweather.asmx?WSDL">WSDL</a> . How can I work with the result of this service in Visual Composer? When I test the service, I get the error, that the XML Document is mal formated.

Kind regards, ANJA

Former Member
0 Kudos

your getWeather web service returns an xml string and that would be a challenge to properly display it. Maybe VC scripting can handle some XML parsing. not sure. In theory the web service should return well formatted response in a form of parameters with simple or complex data types. not a parameter of string type with a whole xml in it. You can always wrap that ws into another ws using your ws development of choice and do the xml parser there into more readable output parameters.

Former Member
0 Kudos

In the first field you insert the URL to the WSDL-file, in the other fields any name of how it should appear under the list of systems.

Mario