cancel
Showing results for 
Search instead for 
Did you mean: 

Import Webservice Model

0 Kudos

I tried to import the model of a werbservice that is provided from a Lotus Notes Domino Environment. When i try to read the WSDL file (which is available from a page out of the Domino database) i get the error message : invalid WSDL document.

What is wrong with my wsdl file - it works for example in the eclipse Webservice explorer.

This is the content of the file:

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions targetNamespace="urn:www.veka.com/ws" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:www.veka.com/ws" xmlns:intf="urn:www.veka.com/ws" xmlns:tns1="http://www.veka.com/schemas" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<wsdl:types>

<schema targetNamespace="http://www.veka.com/schemas" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

<complexType name="tgetPhoneResponse">

<complexContent>

<restriction base="soapenc:Array">

<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:tPhone[]"/>

</restriction>

</complexContent>

</complexType>

<complexType name="tPhone">

<sequence>

<element name="cname" nillable="true" type="xsd:string"/>

<element name="phone" nillable="true" type="xsd:string"/>

<element name="mobil" nillable="true" type="xsd:string"/>

</sequence>

</complexType>

</schema>

</wsdl:types>

<wsdl:message name="getPhoneResponse">

<wsdl:part name="getPhoneResponse" type="tns1:tgetPhoneResponse"/>

</wsdl:message>

<wsdl:message name="getPhoneRequest">

<wsdl:part name="lname" type="xsd:string"/>

</wsdl:message>

<wsdl:portType name="PhoneServer">

<wsdl:operation name="getPhone">

<wsdl:input message="impl:getPhoneRequest" name="getPhoneRequest"/>

<wsdl:output message="impl:getPhoneResponse" name="getPhoneResponse"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="PhoneServerSoapBinding" type="impl:PhoneServer">

<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="getPhone">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getPhoneRequest">

<wsdlsoap:body use="literal"/>

</wsdl:input>

<wsdl:output name="getPhoneResponse">

<wsdlsoap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="PhoneServerService">

<wsdl:port binding="impl:PhoneServerSoapBinding" name="PhoneServer">

<wsdlsoap:address location="http://vekahub.de01.veka.com/share/vekamitar.nsf/WebService"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Thanks in advance!!! Nils

Accepted Solutions (0)

Answers (1)

Answers (1)

MichaelSambeth
Advisor
Advisor
0 Kudos

Hello Nils,

please try two things:

1) use the Web Services checker in NWDS. To do so open the Enterprise Portal perspective and on the lower right you find the web services checker. If it does not show up then use "window --> reset perspective". Try to validate the web service

2) on Domino please make sure that Domino does not add any HTML statements to the response. To do so, please use the design element "page" in a NSF and provide your code as pass-though HTML. Maybe use a simple tool like Microsoft WFetch to fetch the page and to verify that Domino acutally only yields the XML code without any HTML headers or footers.

You may also contact me directly. I have worked a couple of times with Web Services provided by Domino.

Regards

Michael

0 Kudos

Hello Michael,

The first hint gave me the direction to the solution:

The Checker gave the error message, that http gave a error response 407, which means a missing proxy authentication. Due to the fact that it is not possible to add a proxy authentication in the NWDS preferneces i added the dns name of the domino server in the anti proxy list.

Now it works fine!

Thank you very much!

Nils