cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL through ITS in ECC 5.0

Former Member
0 Kudos

Hello, I am a basis administrator with very little knowledge on Web Services. One of our developers who is no more with our company has created two web services (WSDL) and released them in ECC 5.0 development system. We have ITS running on this box running on a specific port. I am trying publish these webservices to our partners outside our organizations. I went to WSADMIN and went to administration settings and assigned the J2EE Server which is the ECC 5.0 with ITS. I also mentioned the port number at the end of the hostname (like... http://xxxxxx.xxxxxx.com:xxxx). But, when I try to test the services, I am getting a (404 - Service Not Found) error. Can someone help me with this? Your help is highly appreciated.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If you have url of wsdl then give this url to your external partner they can publish themselves using this url.

Regards,

Gourav

Former Member
0 Kudos

Thanks for the response Gourav. How do I obtain the URL. Is this URL for every RFC or is this URL system wide? I would really appreciate if you help me out here.

Thank you.

Former Member
0 Kudos

Hi There,

Your URL will much likely be along the lines of

http://your.systems.url:8000/sap/bc/srt/rfc/sap/<YourServiceName>?wsdl

Your URL will, of course, the the server's fully qualified domain name or host name. <YourServiceName> will be whatever it is you named your service when creating it (i.e. Z_MY_WEBSERVICE or whatever your naming convention dictates). Hope this helps.

Answers (2)

Answers (2)

Former Member
0 Kudos

We do not have dual stack. Handed over the development to Portal team to develop a webservice.

Former Member
0 Kudos

Thank you so much for the response. Here is the code I received as an output when I used the URL http://<hostname>:<port>/sap/bc/srt/rfc/sap/<servicename>?wsdl. Even though it wasn't what was expected, this time I got something different. It threw me something similar to bunch of XML codes. Does this mean that I am good to hand over the URL to our partner for them to publish it? And by the way, in SICF, under the path /default_host/sap/bc/srt/rfc/sap/, am I supposed to see a service named WSDL? I don't see this here. How do I confirm that WSDL is enabled in our ECC 5.0 box?

<?xml version="1.0" encoding="utf-8" ?> 
- <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions" elementFormDefault="unqualified" attributeFormDefault="qualified">
- <xsd:simpleType name="char1">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="1" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="numeric4">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="4" /> 
  <xsd:pattern value="\d*" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="numeric9">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="9" /> 
  <xsd:pattern value="\d*" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:element name="OURSERVICE_WS">
- <xsd:complexType>
+ <xsd:sequence>
  <xsd:element name="XXX" type="tns:numeric4" /> 
  <xsd:element name="YYY" type="tns:numeric9" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="OURSERVICE_WSResponse">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element name="ZZZ" type="tns:char1" /> 
  <xsd:element name="AAAV" type="tns:char1" /> 
  <xsd:element name="YYYV" type="tns:char1" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
  </xsd:schema>
  </wsdl:types>
- <wsdl:message name="OURSERVICE_WS">
  <wsdl:part name="parameters" element="tns:OURSERVICE_WS" /> 
  </wsdl:message>
- <wsdl:message name="OURSERVICE_WSResponse">
  <wsdl:part name="parameters" element="tns:OURSERVICE_WSResponse" /> 
  </wsdl:message>
- <wsdl:portType name="OURSERVICE">
- <wsdl:operation name="OURSERVICE_WS">
  <wsdl:input message="tns:OURSERVICE_WS" /> 
  <wsdl:output message="tns:OURSERVICE_WSResponse" /> 
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="OURSERVICESoapBinding" type="tns:OURSERVICE">
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> 
- <wsdl:operation name="OURSERVICE_WS">
  <soap:operation soapAction="" /> 
- <wsdl:input>
  <soap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="OURSERVICEService">
- <wsdl:port name="OURSERVICESoapBinding" binding="tns:OURSERVICESoapBinding">
  <soap:address location="http://xyz.abc.com:8000/sap/bc/srt/rfc/sap/OURSERVICE?sap-client=080" /> 
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

Please note, for privacy reasons, all the actual service names and the actual host name are replaced. Your help is highly appreciated.

NOTE: Even though I marked the entire output within , I am not getting the code displayed properly. sorry about that.

Thank you.

Edited by: SAP007 on Sep 29, 2009 10:05 AM

Edited by: SAP007 on Sep 29, 2009 10:07 AM

Edited by: SAP007 on Sep 29, 2009 10:11 AM

Edited by: SAP007 on Sep 29, 2009 10:16 AM

Former Member
0 Kudos

In WSADMIN tcode (ECC 5.0), under GOTO --> Administration Settings, I mentioned the hostname with port of the J2EE Server [http://[hostname].xxxxx.com:[port].

After this, when I choose the service and do a WebService --> GoToHomepage, it opens another browser and throws the following error message.

-


Service cannot be reached

What has happened?

URL http://[hostname].xxxxx.com:[port]/wsnavigator/jsps/index.jsp call was terminated because the corresponding service is not available.

-


Can someone guide me how to go about troubleshooting or fixing this. This is quite urget and your support is highly appreciated.

Thank you.

Former Member
0 Kudos

Here's a very basic question. How do I find out if my ECC 5.0 has J2EE running. We have Internally published ITS enabled and port configured in SMICM. With ICM running, doesn't guarantee that J2EE Server is running right? Can someone tell me how to find out if J2EE is running in ECC 5.0?

Another basic question. In ECC 5.0, in the above described scenario, for me to publish Web Service (WSDL), is running J2EE Server a must? Your timely support is much appreciated.

Thank you.

Edited by: SAP007 on Oct 5, 2009 11:57 AM