Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Francisco Coutinho
34
Views
4
Comments
Consume Web Services from SAP
Question
Hi guys,
I'm trying to consume a webservice on Outsystems from SAP in order to avoid integration studio, visual studio, proxy connectors, ...
The strange behaviour is that it can be consumed by visual studio, but it returns me an error:
load error - No service descriptions found.
I've asked for help to a person that told me that is missing the wsdl service name.
Has anyone expirencied this kind of behaviour when using SAP web services ?
My Outsystems Server version is 6.0.0.1.
Here goes the wsdl:
<wsdl:definitions
xmlns:wsdl
="
https://schemas.xmlsoap.org/wsdl/
"
xmlns:xsd
="
https://www.w3.org/2001/XMLSchema
"
xmlns:soap
="
https://schemas.xmlsoap.org/wsdl/soap/
"
xmlns:http
="
https://schemas.xmlsoap.org/wsdl/http/
"
xmlns:mime
="
https://schemas.xmlsoap.org/wsdl/mime/
"
xmlns:tns
="
urn:sap-com:document:sap:soap:functions:mc-style
"
xmlns:wsp
="
https://schemas.xmlsoap.org/ws/2004/09/policy
"
xmlns:wsu
="
https://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
"
targetNamespace
="
urn:sap-com:document:sap:soap:functions:mc-style
"
>
<wsdl:documentation>
<sidl:sidl
xmlns:sidl
="
https://www.sap.com/2007/03/sidl
"
/>
</wsdl:documentation>
<wsp:UsingPolicy
wsdl:required
="
true
"
/>
<wsp:Policy
wsu:Id
="
IF_Z_TESTE_OUTSYSTEMS
"
>
<sapsession:Session
xmlns:sapsession
="
https://www.sap.com/webas/630/soap/features/session/
"
>
<sapsession:enableSession>
false
</sapsession:enableSession>
</sapsession:Session>
</wsp:Policy>
<wsp:Policy
wsu:Id
="
OP_ZTesteOutsystems
"
>
<sapcomhnd:enableCommit
xmlns:sapcomhnd
="
https://www.sap.com/NW05/soap/features/commit/
"
>
false
</sapcomhnd:enableCommit>
<sapblock:enableBlocking
xmlns:sapblock
="
https://www.sap.com/NW05/soap/features/blocking/
"
>
true
</sapblock:enableBlocking>
<saptrhnw05:required
xmlns:saptrhnw05
="
https://www.sap.com/NW05/soap/features/transaction/
"
>
no
</saptrhnw05:required>
<saprmnw05:enableWSRM
xmlns:saprmnw05
="
https://www.sap.com/NW05/soap/features/wsrm/
"
>
false
</saprmnw05:enableWSRM>
</wsp:Policy>
<wsdl:types>
<xsd:schema
attributeFormDefault
="
qualified
"
targetNamespace
="
urn:sap-com:document:sap:soap:functions:mc-style
"
>
<xsd:element
name
="
ZTesteOutsystems
"
>
<xsd:complexType>
<xsd:sequence/>
</xsd:complexType>
</xsd:element>
<xsd:element
name
="
ZTesteOutsystemsResponse
"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name
="
IOut
"
type
="
xsd:int
"
/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message
name
="
ZTesteOutsystems
"
>
<wsdl:part
name
="
parameters
"
element
="
tns:ZTesteOutsystems
"
/>
</wsdl:message>
<wsdl:message
name
="
ZTesteOutsystemsResponse
"
>
<wsdl:part
name
="
parameters
"
element
="
tns:ZTesteOutsystemsResponse
"
/>
</wsdl:message>
<wsdl:portType
name
="
Z_TESTE_OUTSYSTEMS
"
>
<wsp:Policy>
<wsp:PolicyReference
URI
="
#IF_Z_TESTE_OUTSYSTEMS
"
/>
</wsp:Policy>
<wsdl:operation
name
="
ZTesteOutsystems
"
>
<wsp:Policy>
<wsp:PolicyReference
URI
="
#OP_ZTesteOutsystems
"
/>
</wsp:Policy>
<wsdl:input
message
="
tns:ZTesteOutsystems
"
/>
<wsdl:output
message
="
tns:ZTesteOutsystemsResponse
"
/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
Miguel Palmeirinha
Hi Francisco.
It appears that the WSDL was not well generated in SOAMANAGER transaction and it does not have the service definition, as the error states.
I believe that WSDL was generated in the “Open Porttype WSDL Document” link of the SOAMANAGER and it should be in the “Open WSDL document for selected binding” Link.
If this link doesn’t work, be sure to have the Hostname and portnumber well defined in the System Global Settings -> Access Information J2EE server tab, also in SOAMANAGER transaction.
Also check this post and site for instructions of SAP WebServices:
https://www.outsystems.com/forums/discussion/6027/exposing-a-sap-bapi-as-a-web-service/
https://sapignite.com/create-a-web-service-in-10-minutes/
Hope it Helps.
Regards
MP
Francisco Coutinho
Hi Miguel,
I've tried a lot of things, and reached the solution.
The file that i attached contains a symbolic walkthrough. There is some details that may be missing to me, but this was the way I found to make the webservice to work. I hope it helps somebody else that is stuck with this and have no clew how to solve it.
Thank you.
Web service SAP OUTSYSTEMS.docx
1 reply
11 Nov 2014
Show thread
Hide thread
Gjermund Lunder
Great walkthrough! Thanks. I did get the service tag in the WSDL myself just by deleteing the service in SOAMANAGER. Create a new one with a binding. Edited this service and applied authorization method user ID/Password. I'm creating the GUI side with Eclipse and Jetty plugin as webserver and the Axis2 CodeGenerator -> Generate Java code from wsdl.
Thanks again.
Miguel Palmeirinha
Hi Francisco,
Glad it turn out ok for you.
Thanks for sharing your solution.
Best Regards
MP
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...