Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » How to convert WSDL/SOAP into TTCN-3(TTCN-3 WSDL)
How to convert WSDL/SOAP into TTCN-3 [message #1766584] Fri, 23 June 2017 10:05 Go to next message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Good morning All,

I would like to know if you have a tool such as xsd2ttcn to convert WSDL/SOAP files into TTCN-3 file? In ETSI ES 201 873-1 V4.9.1 (2017-05) standard, it is referenced as 'Part 12: "Using WSDL with TTCN-3"'.

In case my request would come too early, may I ask you some hints to do it
manually?

Many thanks in advance for your help,

Best Regards,

Yann
Re: How to convert WSDL/SOAP into TTCN-3 [message #1766585 is a reply to message #1766584] Fri, 23 June 2017 10:11 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Yann,

yes there is such a tool, packed among all the other binaries.

please check this post:

https://www.eclipse.org/forums/index.php/t/1068103/

where usage is exemplified.

Mind you , it will not process the whole WSDL file, you will have to extract the schema part first.


Please let me know if you have any further questions

Best regards
Elemer


Re: How to convert WSDL/SOAP into TTCN-3 [message #1766586 is a reply to message #1766585] Fri, 23 June 2017 10:14 Go to previous messageGo to next message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Hello Elemer,

Thanks a lot.
Have a nice day,

Yann
Re: How to convert WSDL/SOAP into TTCN-3 [message #1766601 is a reply to message #1766586] Fri, 23 June 2017 12:05 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Yann,

please be aware that since I posted the article the address of the service has changed to:

https://www.w3schools.com/xml/tempconvert.asmx

with WSDL at :

https://www.w3schools.com/xml/tempconvert.asmx?WSDL


There might have been changes to the WSDL too, I did not check.

BR

Elemer
Re: How to convert WSDL/SOAP into TTCN-3 [message #1766619 is a reply to message #1766601] Fri, 23 June 2017 13:51 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Yann,

I have attached the updated package.

I switched to HTTPS and updated the url


Here's the relevant part of the formatted log:

Sent on HTTP_PCO to system @HTTPmsg_Types.Connect : {
    hostname := "www.w3schools.com",
    portnumber := 443,
    use_ssl := true
}
15:45:00.623510 SOAP_demo.ttcn:286 Message enqueued on HTTP_PCO from system @HTTPmsg_Types.Connect_result : {
    client_id := 5
} id 1
15:45:00.623653 SOAP_demo.ttcn:287 Start timer t0: 3 s
15:45:00.623751 SOAP_demo.ttcn:291 Matching on port HTTP_PCO succeeded:  matched
15:45:00.623819 SOAP_demo.ttcn:291 Receive operation on port HTTP_PCO succeeded, message from system(): @HTTPmsg_Types.Connect_result : {
    client_id := 5
} id 1
15:45:00.623877 SOAP_demo.ttcn:291 Message with id 1 was extracted from the queue of HTTP_PCO.
15:45:00.624131 SOAP_demo.ttcn:297 Sent on HTTP_PCO to system @HTTPmsg_Types.HTTPMessage : {
    request := {
        client_id := 5,
        method := "POST",
        uri := "/xml/tempconvert.asmx",
        version_major := 1,
        version_minor := 1,
        header := {
            {
                header_name := "Host",
                header_value := "www.w3schools.com"
            },
            {
                header_name := "Content-Length",
                header_value := "236"
            },
            {
                header_name := "Content-Type",
                header_value := "text/xml; charset=utf-8"
            },
            {
                header_name := "SOAPAction",
                header_value := "https://www.w3schools.com/xml/FahrenheitToCelsius"
            }
        },
        body := "<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns='https://www.w3schools.com/xml/'>
	<soap:Body>
		<FahrenheitToCelsius>
			<Fahrenheit>100</Fahrenheit>
		</FahrenheitToCelsius>
	</soap:Body>
</soap:Envelope>

"
    }
}
15:45:00.829307 SOAP_demo.ttcn:298 Message enqueued on HTTP_PCO from system @HTTPmsg_Types.HTTPMessage : {
    response := {
        client_id := 5,
        version_major := 1,
        version_minor := 1,
        statuscode := 200,
        statustext := "OK",
        header := {
            {
                header_name := "Cache-Control",
                header_value := "private, max-age=0,public"
            },
            {
                header_name := "Content-Type",
                header_value := "text/xml; charset=utf-8"
            },
            {
                header_name := "Date",
                header_value := "Fri, 23 Jun 2017 13:45:00 GMT"
            },
            {
                header_name := "Server",
                header_value := "Microsoft-IIS/7.5"
            },
            {
                header_name := "X-AspNet-Version",
                header_value := "4.0.30319"
            },
            {
                header_name := "X-Frame-Options",
                header_value := "SAMEORIGIN"
            },
            {
                header_name := "X-Powered-By",
                header_value := "ASP.NET"
            },
            {
                header_name := "Content-Length",
                header_value := "415"
            }
        },
        body := "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><FahrenheitToCelsiusResponse xmlns=\"https://www.w3schools.com/xml/\"><FahrenheitToCelsiusResult>37.7777777777778</FahrenheitToCelsiusResult></FahrenheitToCelsiusResponse></soap:Body></soap:Envelope>"
    }
} id 2
15:45:00.829474 SOAP_demo.ttcn:301 Matching on port HTTP_PCO succeeded:  matched
15:45:00.829611 SOAP_demo.ttcn:301 Receive operation on port HTTP_PCO succeeded, message from system(): @HTTPmsg_Types.HTTPMessage : {
    response := {
        client_id := 5,
        version_major := 1,
        version_minor := 1,
        statuscode := 200,
        statustext := "OK",
        header := {
            {
                header_name := "Cache-Control",
                header_value := "private, max-age=0,public"
            },
            {
                header_name := "Content-Type",
                header_value := "text/xml; charset=utf-8"
            },
            {
                header_name := "Date",
                header_value := "Fri, 23 Jun 2017 13:45:00 GMT"
            },
            {
                header_name := "Server",
                header_value := "Microsoft-IIS/7.5"
            },
            {
                header_name := "X-AspNet-Version",
                header_value := "4.0.30319"
            },
            {
                header_name := "X-Frame-Options",
                header_value := "SAMEORIGIN"
            },
            {
                header_name := "X-Powered-By",
                header_value := "ASP.NET"
            },
            {
                header_name := "Content-Length",
                header_value := "415"
            }
        },
        body := "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><FahrenheitToCelsiusResponse xmlns=\"https://www.w3schools.com/xml/\"><FahrenheitToCelsiusResult>37.7777777777778</FahrenheitToCelsiusResult></FahrenheitToCelsiusResponse></soap:Body></soap:Envelope>"
    }
} id 2
15:45:00.829729 SOAP_demo.ttcn:301 Message with id 2 was extracted from the queue of HTTP_PCO.
15:45:00.829783 SOAP_demo.ttcn:318 vl_char_body"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><FahrenheitToCelsiusResponse xmlns=\"https://www.w3schools.com/xml/\"><FahrenheitToCelsiusResult>37.7777777777778</FahrenheitToCelsiusResult></FahrenheitToCelsiusResponse></soap:Body></soap:Envelope>"
15:45:00.829953 SOAP_demo.ttcn:330 Sent on HTTP_PCO to system @HTTPmsg_Types.Close : {
    client_id := 5
}



BR

Elemer
  • Attachment: SOAP_demo.tgz
    (Size: 540.15KB, Downloaded 83 times)
Re: How to convert WSDL/SOAP into TTCN-3 [message #1768999 is a reply to message #1766619] Tue, 25 July 2017 14:06 Go to previous message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Hello Elemer,

Sorry for the delay, I needed some time to implement all these changes in my project, but many thanks, it works ;-)

Thanks again for your great support,

BR, Yann
Previous Topic:CSN.1 integration to TITAN?
Next Topic:Support for JSON binary encodings in Titan: BSON
Goto Forum:
  


Current Time: Fri Apr 19 20:48:36 GMT 2024

Powered by FUDForum. Page generated in 0.03056 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top