cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 consuming web service from C4C

benlim
Contributor
0 Kudos

Hi,

I'm trying to consume C4C web service. I've maintained my C4C hosts in SCP Destination and my neo-app.json file.

However I still getting error while running the app.

wsdlUrl has maintained in SCP Destination.

request data is my XML data.

Thanks.

Regards,

-Ben-

Accepted Solutions (1)

Accepted Solutions (1)

richard-zhao
Employee
Employee
0 Kudos

Hello, Yen Shen. Could you check your WSDL soap version, please? SOAP 1.1 or 1.2. According to the namespace, you are using the client is soap 1.1. I guess the server is SOAP 1.2 so you got the SOAP version mismatch error. Once you get the soap version of both server and client side. Modify one side to use the same version. thanks

benlim
Contributor
0 Kudos

Hi Richard,

May I know where to maintain the SOAP version? Is there any missing parameter that I need to maintain in the AJAX called?

My xml data request as below and it's able to post via SOAPUI:

var request =

richard-zhao
Employee
Employee

Hello, Base on your request. I would like to correct my last answer. you are using soap 1.2 clients. so Could you try to modify content-Type:text/xml;charset=UTF-8 to content-Type:application/soap+xml;charset=UTF-8 and test again.

benlim
Contributor
0 Kudos

Hi Richard,

It's working! Thanks for your guide!

Answers (1)

Answers (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Yen,

Could you be more specific on the error itself. One thing that might help is by pressing SHIFT+CTRL+I (F12) on your Chrome or FF browser and inspect the console log for any strange error messages. Also, check the network tab to see if there are are requests being made to the web services destination on SCP (sufix /destination/<name>/<service>).

Regards,
Ivan

benlim
Contributor
0 Kudos

Hi Ivan,

I was getting below error while inspect in chrome. The network tab does called the web services destination from SCP.

I tried to change and hard code the url in wsdlUrl and entered username, parameter as shown below. With this I get logon error from inspect element.

Any idea on this?

Regards,

-Ben-