Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Nowadays Im trying to do simple an application that is consuming SAP web service. I got wsdl link via soap manager and added it to project as web refences. C# created a complex type which includes my RFC's import-export parameters and tables and if i want to call web services method, i have to send all my values in a variable thats type complex also returned values come back to me in a variable thats type same. But returned tables are initial.

However, i got wsdl link via wsconfig and wsadmin in another system but same RFC, C# didn't create any complex type. It created different types for each RFC' parameters and i can send my values in different variables also returned values are correct.

Why soap manager and wsconfig create different wsdl or Why C# create different types and methods for same RFC? How to solve this problem? Do you know any tips or tricks?

Thanks for advising

share|improve this question

2 Answers

Are both systems on the same release level? With newer releases there could be changes in the wsdl generation mechanism. So wsconfig / wsadmin is considerd deprecated and you should use soamanager if available.

share|improve this answer
Not same level. if I use soapmanager wsdl, returned tables are empty. – Abaper Nov 8 '10 at 11:52
Why is that? Did you have debugged the function call on SAP side? – Richard Dec 2 '10 at 18:39

As already mentioned, wsconfig and wsadmin is considered deprecated, so you should always use the soamanager transaction. When you open the WSDL for a web service in soamanager, you will see it in a new browser window. In it's address location bar (say: the URL) you see somewhere at the end a "../ws_policy/.." -- try to replace this to "../standard/.." and reload the WSDL with this new address, then use this new/other WSDL for your client program.

Does this help?

share|improve this answer
thanks for advising, but it does not work. it again creates complex type and returned values are not correct. – Abaper Nov 23 '10 at 12:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.