cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get input from SOAP UI through web services

0 Kudos

Hi Experts,

I created the webservices based on below link,

https://blogs.sap.com/2012/10/24/how-to-create-web-services-abap-based/

But i am unable to pass input from soap ui to sap ,Also the external breakpoint which i set in FM is not triggered during the execution, If i hard code the input in RFC functional module i can able to get the FM's output in soap ui.

Pl help me to resolve.

Regards,

Sathesh.

Accepted Solutions (1)

Accepted Solutions (1)

Softwaris
Participant

Might want to check the endpoint used in your SOAPUI project and the user used to logon through SOAPUI. Does it correspond with the user you set your external breakpoint for?

0 Kudos

Hi Aris van Mazijk,

Thanks for the reply,

Yes both are correct, i can able to receive thee output in SOAP UI if hard code the input in FM , i can get the output in SOAP UI.,

pl advice

Softwaris
Participant

Well, obviously you get an output whenever you hard-code the input in your FM, but that's not the point here 🙂

Have you try reaching your endpoint in a normal web browser? Do you see an XML? (after entering your credentials)

0 Kudos

Hi ,

pl find the attachment

for the response which i tried in normal browser.

Softwaris
Participant

Can you post a screenshot of your request also? Might be something related to your payload...

0 Kudos

Hi,

I just paste the url in normal web browser and gave username and password as input,

then i got the attached response after entering username and password.

Softwaris
Participant
0 Kudos

Okay, this might be a long shot, but have a look at this:

https://archive.sap.com/discussions/thread/1593461

0 Kudos

Hi ,

Its not working.

Softwaris
Participant

Bummer, then I'm running out of options too. Like holakac suggested, try looking into transactions SICF and maybe SOAMANAGER to see if all your objects, endpoints, etc are activated and correct.

0 Kudos

Hi,

How to check endpoints in SICF

Softwaris
Participant

First, did you try to set an external breakpoint under the user entered as login user in the "Logon Data" tab?

0 Kudos

Hi Aris,

Thanks a lot,

It is working if i put a external breakpoint and run,

Is it possible to display output in the internal table in SOAP instead of one varialble,

i tried displaying the output in internal table but i got the error as i have to gv input in internal table also eventhough i gave internal table as optional ,pl find the attached.

pl advice .

0 Kudos

Coding and soap output

Softwaris
Participant

Sure it's possible, but you need to map the internal table results to the response message of your webservice. For that, you might have to adjust the interface of your function module to accept the specific internal table as an output parameter instead of just the MATNR. Don't forget to mark my previous answer as correct (if it was helpful off course) in order for this thread to be labeled answered.

Softwaris
Participant
0 Kudos

Did you regenerate your webservice after adding the internal table as output?

0 Kudos

Yes, I regenreate the webservice url everytime i made the changes in RFC but its still the same output,

kindly tel me how to adjust the interface of my function module to accept the specific internal table only for output parameter instead of asking as input

Softwaris
Participant

Totally unrelated to your issue, but you might want to reconsider the queries you are making in ZSAMPLE. With the first one you might as well use SELECT SINGLE and get rid of the ENDSELECT. The second one you might want to refactor to INTO TABLE and also drop of the ENDSELECT.

As for your issue, it looks that somewhere along the way a cx_sy_conversion_no_number exception has occurred. Check if transaction ST12 gives you any information on where this might have happened.

0 Kudos

Thanks a lot for your timely help.

Answers (1)

Answers (1)

holakac
Explorer

What response do you see in SOAP UI ?

Do you have the webservice/RFC function allowed/active in SICF transaction ?

0 Kudos

Hi Jan,

Thanks for the response,

Pl find the attachment for the details for SICF & response from the SOAP UI tool .

1.SICF.

2.SOAP tool input & reponse

0 Kudos

SICF screenshot

holakac
Explorer
0 Kudos

Well then check in SOAMANAGER your login user and put an external breakpoint into your FM, and try to run soap request again. There should be either some visible error in SOAP UI or an externall breakpoink should launch debugger and help you find the problem.

0 Kudos

Hi,

I tried by inserting external breakpoints but its not getting triggered while connecting from SOAP..