Where's the WSDL SOAP Analyser menu item / button?

Oxygen general issues.
Roelfie
Posts: 6
Joined: Wed Dec 12, 2012 1:13 pm

Where's the WSDL SOAP Analyser menu item / button?

Post by Roelfie »

I have an oXygen (XML Author 14.1, build 2012121012) project containing a WSDL file.

According to this document
http://www.oxygenxml.com/doc/ug-editor/ ... quest.html
the WSDL SOAP Analyser should be available under
  • Toolbar button WSDL SOAP Analyser
  • Document > Tools > WSDL SOAP Analyser
  • Submenu [Open with > WSDL SOAP Analyser] of the 'Project' view contextual menu
In my case only the last one (Project contextual menu) is available; where are the main menu item / toolbar button?
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Where's the WSDL SOAP Analyser menu item / button?

Post by Costin »

Hello,

Thank you for reporting this.

Please note that the document you have mentioned is the Oxygen XML Editor user manual, but you said you are using oXygen XML Author.

Note that the WSDL SOAP Analyzer tool is not available in oXygen XML Author, as the WSDL support is not intended for the authoring part. It is only available for Editor and Developer. This is mentioned on the WSDL Editor page: http://oxygenxml.com/xml_editor/wsdl_editor.html and also in the feature matrix:
http://www.oxygenxml.com/xml_editor/feature_matrix.html
(search for WSDL in the filter)

Therefore, the presence of the "Open with > WSDL SOAP Analyser" submenu in the Author product is a mistake on our part (it doesn't actually work), which will be corrected in the future release of oXygen.

In addition I see that the same mistake has been done with "Open with > Generate/Convert Schema. The same applies for this.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
Roelfie
Posts: 6
Joined: Wed Dec 12, 2012 1:13 pm

Valid WSDL document can not be opened with WSDL SOAP Analyzer

Post by Roelfie »

I have an oXygen project with just one WSDL file (see bottom of this post). When I open the WSDL file in the oXygen XML editor and try to validate it, it fails:
There is no schema or DTD associated with the document. You can create an association either with the Associate Schema action or configuring in the Options the Preferences/Document Type Association list, or by creating a Validation Scenario.
According to this document:
http://www.oxygenxml.com/doc/ug-editor/ ... quest.html
You do not need to specify the schema location for the WSDL standard namespaces because Oxygen XML Editor comes with these schemas and uses them by default ...
However, when I specify the WSDL schema, by adding this to my WSDL document:

Code: Select all

xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/"
then manual document validation succeeds. So the document really is a valid WSDL file (I guess...).

Now, when I try to open the WSDL SOAP Analyser tool via submenu [Open with > WSDL SOAP Analyser] of the 'Project' view contextual menu, it first says
Document contains errors. WSDL Analysis may not be accurate. Continue?
and when I click 'Yes' it says:
WSDL Document is not valid: javax/wsdl/xml/WSDLReader
Questions:
  • Why should I add the WSDL schema location for the file to validate? Is there a difference between the 'XML Editor' and what the above mentioned document calls a 'WSDL editor'? (I can't find an editor called 'WSDL editor').
  • Where are the schemas for the WSDL standard namespaces, that ship with oXygen, located? I can't seem to find any on the file system.
  • Why is oXygen complaining that my WSDL document is invalid, and why can't I open the WSDL SOAP Analyser?

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ wsdl.xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.MyTest.org/MyTest/"
name="MyTest" targetNamespace="http://www.MyTest.org/MyTest/">

<wsdl:types>
<xsd:schema targetNamespace="http://www.MyTest.org/MyTest/">
<xsd:element name="getProductRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="productID" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getProductResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="tns:ProductType"> </xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="ProductType">
<xsd:sequence>
<xsd:element name="description" type="xsd:string"> </xsd:element>
<xsd:element name="appDuration" type="xsd:int"/>
<xsd:element name="requisites" type="xsd:string" maxOccurs="unbounded"
minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>

<wsdl:message name="getProductRequest">
<wsdl:part name="parameters" element="tns:getProductRequest"> </wsdl:part>
</wsdl:message>
<wsdl:message name="getProductResponse">
<wsdl:part name="parameters" element="tns:getProductResponse"/>
</wsdl:message>

<wsdl:portType name="MyPortType">
<wsdl:operation name="getProduct">
<wsdl:input message="tns:getProductRequest"/>
<wsdl:output message="tns:getProductResponse"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="MyTestBinding" type="tns:MyPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getProduct">
<soap:operation soapAction="http://www.MyTest.org/MyTest/getProduct"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="MyService">
<wsdl:port binding="tns:MyTestBinding" name="MyTestSOAP">
<soap:address location="http://www.MyTest.org/"/>
</wsdl:port>
</wsdl:service>

</wsdl:definitions>
Roelfie
Posts: 6
Joined: Wed Dec 12, 2012 1:13 pm

Re: Where's the WSDL SOAP Analyser menu item / button?

Post by Roelfie »

Okay, thanks for the quick reply.

This probably also causes the error mentioned in my second post (Valid WSDL document can not be opened with WSDL SOAP Analyzer) http://www.oxygenxml.com/forum/post23678.html?
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Where's the WSDL SOAP Analyser menu item / button?

Post by adrian »

Hi,

If that's in the XML Author then that's normal. There is no WSDL support whatsoever in the XML Author, so it can't even validate the WSDL to begin with (there's no schema).

This works out-of-the-box with the XML Editor and the XML Developer.
If you have already purchased the Author, but need the WSDL support and want to switch products, please write to our support email address: support AT oxygenxml DOT com
If you have requested a trial, then you can use the same trial license key with the Developer or the Editor.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
dyentrush
Posts: 1
Joined: Mon Dec 31, 2012 2:46 am

Re: Where's the WSDL SOAP Analyser menu item / button?

Post by dyentrush »

glad I came across this one.
Post Reply