cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice Model Problem

MarkusKlein
Active Contributor
0 Kudos

Hello everybody,

i have created a RFC-FM in ABAP (WAS 6.40 SP9). I have exposed this FM as Web Service using the Web Service Creation Wizard. All worked fine. When testing the WS using the WS Homepage i get the correct results, no errors at all. Now i wanted to use this WS as a Model in a Web Dynpro Application.

Therefor i did the following:

- Selecting Adding a new WS Model

- Named the Model and Package

- Selected UDDI or URL as WSDL Source

- Went to the UDDI and selected the WS

(the WSDL looks like this: http://xxx.xxx:8000/sap/bc/srt/rfc/sap/XXXXWS?sap-client=xxx&wsdl=1.1&scope=designtime

Now when i click next i get the error

"Invalid WSDL or WSDL not found"

I dont know whats wrong because the WSDL works when i call it from my Browser.

Anyone has any idea?

regards,

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Markus,

Please check proxy settings in the IDE.

Goto Window->Preferences->workench and check the proxy settings.

Regards, Anilkumar

MarkusKlein
Active Contributor
0 Kudos

Hello,

the proxy settings are fine. Even downloading the WSDL on my PC and using it from there as WS Model didnt work. Still get the same error message.

could it be a generel problem with ABAP based WS, because using WS baseing on Java Beans are working fine.

Former Member
0 Kudos

Hello Markus

Former Member
0 Kudos

Hi Markus,

Have you registered your Web service on UDDI of your WAS server.

If not then choose second option "Local File system or URL" when you create web service model in webdynpro.

Then choose your downloaded WSDL file and generate WS model.

Regards,

Bhavik

MarkusKlein
Active Contributor
0 Kudos

Hello,

yes i did register my Web Service at the UDDI Server. As i already said, even when i download the WSDL and choose "Local File.." as option i get the error.

Maybe there is an error at the WSDL-file. (Its generated tho).

<?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="char12">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="12" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="char2">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="2" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="char20">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="20" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="char220">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="220" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="char4">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="4" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="char40">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="40" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="char50">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="50" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="char8">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="8" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="date">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="10" /> 
  <xsd:pattern value="dddd-dd-dd" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="decimal4.2">
- <xsd:restriction base="xsd:decimal">
  <xsd:totalDigits value="4" /> 
  <xsd:fractionDigits value="2" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="decimal5.2">
- <xsd:restriction base="xsd:decimal">
  <xsd:totalDigits value="5" /> 
  <xsd:fractionDigits value="2" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="decimal7.2">
- <xsd:restriction base="xsd:decimal">
  <xsd:totalDigits value="7" /> 
  <xsd:fractionDigits value="2" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="numeric1">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="1" /> 
  <xsd:pattern value="d*" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="numeric3">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="3" /> 
  <xsd:pattern value="d*" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="numeric6">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="6" /> 
  <xsd:pattern value="d*" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:simpleType name="numeric8">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="8" /> 
  <xsd:pattern value="d*" /> 
  </xsd:restriction>
  </xsd:simpleType>
- <xsd:complexType name="P0007">
- <xsd:sequence>
  <xsd:element name="PERNR" type="tns:numeric8" /> 
  <xsd:element name="INFTY" type="tns:char4" /> 
  <xsd:element name="SUBTY" type="tns:char4" /> 
  <xsd:element name="OBJPS" type="tns:char2" /> 
  <xsd:element name="SPRPS" type="tns:char1" /> 
  <xsd:element name="ENDDA" type="tns:date" /> 
  <xsd:element name="BEGDA" type="tns:date" /> 
  <xsd:element name="SEQNR" type="tns:numeric3" /> 
  <xsd:element name="AEDTM" type="tns:date" /> 
  <xsd:element name="UNAME" type="tns:char12" /> 
  <xsd:element name="HISTO" type="tns:char1" /> 
  <xsd:element name="ITXEX" type="tns:char1" /> 
  <xsd:element name="REFEX" type="tns:char1" /> 
  <xsd:element name="ORDEX" type="tns:char1" /> 
  <xsd:element name="ITBLD" type="tns:char2" /> 
  <xsd:element name="PREAS" type="tns:char2" /> 
  <xsd:element name="FLAG1" type="tns:char1" /> 
  <xsd:element name="FLAG2" type="tns:char1" /> 
  <xsd:element name="FLAG3" type="tns:char1" /> 
  <xsd:element name="FLAG4" type="tns:char1" /> 
  <xsd:element name="RESE1" type="tns:char2" /> 
  <xsd:element name="RESE2" type="tns:char2" /> 
  <xsd:element name="GRPVL" type="tns:char4" /> 
  <xsd:element name="SCHKZ" type="tns:char8" /> 
  <xsd:element name="ZTERF" type="tns:numeric1" /> 
  <xsd:element name="EMPCT" type="tns:decimal5.2" /> 
  <xsd:element name="MOSTD" type="tns:decimal5.2" /> 
  <xsd:element name="WOSTD" type="tns:decimal5.2" /> 
  <xsd:element name="ARBST" type="tns:decimal5.2" /> 
  <xsd:element name="WKWDY" type="tns:decimal4.2" /> 
  <xsd:element name="JRSTD" type="tns:decimal7.2" /> 
  <xsd:element name="TEILK" type="tns:char1" /> 
  <xsd:element name="MINTA" type="tns:decimal5.2" /> 
  <xsd:element name="MAXTA" type="tns:decimal5.2" /> 
  <xsd:element name="MINWO" type="tns:decimal5.2" /> 
  <xsd:element name="MAXWO" type="tns:decimal5.2" /> 
  <xsd:element name="MINMO" type="tns:decimal5.2" /> 
  <xsd:element name="MAXMO" type="tns:decimal5.2" /> 
  <xsd:element name="MINJA" type="tns:decimal7.2" /> 
  <xsd:element name="MAXJA" type="tns:decimal7.2" /> 
  <xsd:element name="DYSCH" type="tns:char1" /> 
  <xsd:element name="KZTIM" type="tns:char2" /> 
  <xsd:element name="WWEEK" type="tns:char2" /> 
  </xsd:sequence>
  </xsd:complexType>
- <xsd:complexType name="BAPIRET1">
- <xsd:sequence>
  <xsd:element name="TYPE" type="tns:char1" /> 
  <xsd:element name="ID" type="tns:char20" /> 
  <xsd:element name="NUMBER" type="tns:numeric3" /> 
  <xsd:element name="MESSAGE" type="tns:char220" /> 
  <xsd:element name="LOG_NO" type="tns:char20" /> 
  <xsd:element name="LOG_MSG_NO" type="tns:numeric6" /> 
  <xsd:element name="MESSAGE_V1" type="tns:char50" /> 
  <xsd:element name="MESSAGE_V2" type="tns:char50" /> 
  <xsd:element name="MESSAGE_V3" type="tns:char50" /> 
  <xsd:element name="MESSAGE_V4" type="tns:char50" /> 
  </xsd:sequence>
  </xsd:complexType>
- <xsd:complexType name="ZXSS_EMPLOYEE_DATA">
- <xsd:sequence>
  <xsd:element name="PERNR" type="tns:numeric8" /> 
  <xsd:element name="NAME" type="tns:char40" /> 
  </xsd:sequence>
  </xsd:complexType>
- <xsd:complexType name="TableOfZXSS_EMPLOYEE_DATA">
- <xsd:sequence>
  <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:ZXSS_EMPLOYEE_DATA" /> 
  </xsd:sequence>
  </xsd:complexType>
- <xsd:element name="ZXSS_SHOW_IT0007">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element name="Personalnummer" minOccurs="0" type="tns:numeric8" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="ZXSS_SHOW_IT0007Response">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element name="Infotypdaten" type="tns:P0007" /> 
  <xsd:element name="Meldungen" type="tns:BAPIRET1" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="ZXSS_GET_EMPLOYEES">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element name="Benutzer" minOccurs="0" type="tns:char12" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
- <xsd:element name="ZXSS_GET_EMPLOYEESResponse">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element name="Mitarbeiter" type="tns:TableOfZXSS_EMPLOYEE_DATA" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
  </xsd:schema>
  </wsdl:types>
- <wsdl:message name="ZXSS_SHOW_IT0007">
  <wsdl:part name="parameters" element="tns:ZXSS_SHOW_IT0007" /> 
  </wsdl:message>
- <wsdl:message name="ZXSS_SHOW_IT0007Response">
  <wsdl:part name="parameters" element="tns:ZXSS_SHOW_IT0007Response" /> 
  </wsdl:message>
- <wsdl:message name="ZXSS_GET_EMPLOYEES">
  <wsdl:part name="parameters" element="tns:ZXSS_GET_EMPLOYEES" /> 
  </wsdl:message>
- <wsdl:message name="ZXSS_GET_EMPLOYEESResponse">
  <wsdl:part name="parameters" element="tns:ZXSS_GET_EMPLOYEESResponse" /> 
  </wsdl:message>
- <wsdl:portType name="ZXSS_Display_HR_Data_WS">
- <wsdl:operation name="ZXSS_SHOW_IT0007">
  <wsdl:input message="tns:ZXSS_SHOW_IT0007" /> 
  <wsdl:output message="tns:ZXSS_SHOW_IT0007Response" /> 
  </wsdl:operation>
- <wsdl:operation name="ZXSS_GET_EMPLOYEES">
  <wsdl:input message="tns:ZXSS_GET_EMPLOYEES" /> 
  <wsdl:output message="tns:ZXSS_GET_EMPLOYEESResponse" /> 
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="ZXSS_Display_HR_Data_WSSoapBinding" type="tns:ZXSS_Display_HR_Data_WS">
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> 
- <wsdl:operation name="ZXSS_SHOW_IT0007">
  <soap:operation soapAction="" /> 
- <wsdl:input>
  <soap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="ZXSS_GET_EMPLOYEES">
  <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="ZXSS_Display_HR_Data_WSService">
- <wsdl:port name="ZXSS_Display_HR_Data_WSSoapBinding" binding="tns:ZXSS_Display_HR_Data_WSSoapBinding">
  <soap:address location="http://xxx.xxx:8000/sap/bc/srt/rfc/sap/ZXSS_Display_HR_Data_WS?sap-client=088" /> 
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

Former Member
0 Kudos

Markus,

I've just tried out the file you'd posted: everything works perfectly with NW 6.4 (SP11) and NW 7.0

VS

MarkusKlein
Active Contributor
0 Kudos

Hello,

well im on NW 6.40 SP9. Is there any reported bug with this Level and Web Services running on the ABAP stack? Because using Web Services basing on Java Beans (Java Stack) are working just fine.

Former Member
0 Kudos

Markus,

I cannot refer to exact csn ticket or note, but model generation stuff was improved radically since SP9.

So my advice: upgrade if you can to highest possible version.

VS

Answers (0)