Commit 83517a20 authored by Philippe Merle's avatar Philippe Merle

Corrected faulty continuous integration test...

Corrected faulty continuous integration test http://bamboo.ow2.org/browse/SCA-DEF-JOB1-942/test/case/67182254
* Replaced port 9000 by 8765 because 9000 is already used on OW2 Bamboo.
* Activated the getWSDL Junit test.
* Updated the client's WSDL to be conform with the server's WSDL.
parent 0554ac3f
<?xml version="1.0" encoding="UTF-8"?>
<!-- OW2 FraSCAti Examples: HelloWorld Web Service -->
<!-- Copyright (C) 2008-2010 INRIA, University of Lille 1 -->
<!-- Copyright (C) 2008-2012 Inria, University of Lille 1 -->
<!-- -->
<!-- This library is free software; you can redistribute it and/or -->
<!-- modify it under the terms of the GNU Lesser General Public -->
......@@ -20,7 +20,7 @@
<!-- -->
<!-- Author: Damien Fournier -->
<!-- -->
<!-- Contributor(s): Nicolas Dolet -->
<!-- Contributor(s): Nicolas Dolet, Philippe Merle -->
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:wsdli="http://www.w3.org/2004/08/wsdl-instance"
......@@ -36,7 +36,7 @@
<interface.java interface="java.lang.Runnable" />
</service>
<reference name="printService">
<binding.ws wsdli:wsdlLocation="http://localhost:9000/HelloService?wsdl"
<binding.ws wsdli:wsdlLocation="http://localhost:8765/HelloService?wsdl"
wsdlElement="http://annotated.helloworld.examples.frascati.ow2.org/#wsdl.port(HelloService/HelloServicePort)" />
</reference>
<implementation.java class="org.ow2.frascati.examples.helloworld.annotated.ClientImpl" />
......
<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="HelloService" targetNamespace="http://annotated.helloworld.examples.frascati.ow2.org/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://annotated.helloworld.examples.frascati.ow2.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://annotated.helloworld.examples.frascati.ow2.org/" xmlns:tns="http://annotated.helloworld.examples.frascati.ow2.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="print" type="tns:print" />
<xsd:complexType name="print">
<xsd:sequence>
<xsd:element minOccurs="0" name="arg0" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="printResponse" type="tns:printResponse" />
<xsd:complexType name="printResponse">
<xsd:sequence />
</xsd:complexType>
<xsd:element name="print" type="tns:print"/>
<xsd:complexType name="print">
<xsd:sequence>
<xsd:element minOccurs="0" name="arg0" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="printResponse" type="tns:printResponse"/>
<xsd:complexType name="printResponse">
<xsd:sequence/>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="print">
......@@ -30,20 +30,20 @@
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HelloServiceSoapBinding" type="tns:HelloServicePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="print">
<soap:operation soapAction="" style="document" />
<soap:operation soapAction="" style="document"/>
<wsdl:input name="print">
<soap:body use="literal" />
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="printResponse">
<soap:body use="literal" />
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HelloService">
<wsdl:port binding="tns:HelloServiceSoapBinding" name="HelloServicePort">
<soap:address location="http://localhost:9000/HelloService" />
<soap:address location="http://localhost:8765/HelloService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
</wsdl:definitions>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- OW2 FraSCAti Examples: HelloWorld Web Service -->
<!-- Copyright (C) 2008-2010 INRIA, University of Lille 1 -->
<!-- Copyright (C) 2008-2012 Inria, University of Lille 1 -->
<!-- -->
<!-- This library is free software; you can redistribute it and/or -->
<!-- modify it under the terms of the GNU Lesser General Public -->
......@@ -20,7 +20,7 @@
<!-- -->
<!-- Author: Damien Fournier -->
<!-- -->
<!-- Contributor(s): Nicolas Dolet -->
<!-- Contributor(s): Nicolas Dolet, Philippe Merle -->
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:wsdli="http://www.w3.org/2004/08/wsdl-instance"
......@@ -29,7 +29,7 @@
<service name="s" promote="server/s">
<interface.java interface="org.ow2.frascati.examples.helloworld.annotated.HelloService" />
<binding.ws uri="http://localhost:9000/HelloService"/>
<binding.ws uri="http://localhost:8765/HelloService"/>
</service>
<component name="server">
......
/**
* OW2 FraSCAti Examples: HelloWorld WS Server
* Copyright (C) 2009-2010 INRIA, University of Lille 1
* Copyright (C) 2009-2012 Inria, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -50,13 +50,9 @@ public class HelloWorldWSTestCase
}
@Test
public final void BIDON()
{
}
public void getWSDL() throws Exception
{
String wsdlLocation = "http://localhost:9000/HelloService?wsdl";
String wsdlLocation = "http://localhost:8765/HelloService?wsdl";
System.out.println("Getting WSDL at: " + wsdlLocation + "...");
URL wsdl = new URL(wsdlLocation);
BufferedReader in = new BufferedReader(new InputStreamReader(wsdl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment