Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat's wrong with my WSDL?
    text
    copied!<p>Spent all day trying to generate an xmlbeans binding using wsdl2java (Axis2 1.5.4) Completely befuddled. Here's my command line:</p> <pre><code>wsdl2java.bat -uri http://localhost:3000/api/wsdl -d xmlbeans -a -or -o build/client </code></pre> <p>Here's the WSDL:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;wsdl2:description xmlns:wsdlx="http://www.w3.org/ns/wsdl-extensions" xmlns:whttp="http://www.w3.org/ns/wsdl/http" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl2="http://www.w3.org/ns/wsdl" xmlns:tns="http://localhost:3000/api/wsdl" targetNamespace="http://localhost:3000/api/wsdl"&gt; &lt;wsdl2:documentation&gt; &lt;/wsdl2:documentation&gt; &lt;wsdl2:types&gt; &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" targetNamespace="http://localhost:3000/api/wsdl"&gt; &lt;xs:element type="tns:loginType" name="login"&gt; &lt;xs:annotation&gt; &lt;xs:documentation&gt; &lt;/xs:documentation&gt; &lt;/xs:annotation&gt; &lt;/xs:element&gt; &lt;xs:element type="tns:idType" name="id"&gt; &lt;xs:annotation&gt; &lt;xs:documentation&gt; &lt;/xs:documentation&gt; &lt;/xs:annotation&gt; &lt;/xs:element&gt; &lt;xs:complexType name="loginType"&gt; &lt;xs:sequence&gt; &lt;xs:element type="xs:string" minOccurs="1" maxOccurs="1" name="email"/&gt; &lt;xs:element type="xs:string" minOccurs="1" maxOccurs="1" name="password"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;xs:complexType name="idType"&gt; &lt;xs:attribute type="xs:int" name="id"/&gt; &lt;/xs:complexType&gt; &lt;/xs:schema&gt; &lt;/wsdl2:types&gt; &lt;wsdl2:interface name="AtlasServiceInterface"&gt; &lt;wsdl2:operation style="http://www.w3.org/ns/wsdl/style/iri" name="login" pattern="http://www.w3.org/ns/wsdl/in-out"&gt; &lt;wsdl2:documentation&gt; &lt;/wsdl2:documentation&gt; &lt;wsdl2:input messageLabel="In" element="tns:login"/&gt; &lt;wsdl2:output messageLabel="Out" element="tns:id"/&gt; &lt;/wsdl2:operation&gt; &lt;/wsdl2:interface&gt; &lt;wsdl2:binding type="https://www.w3.org/ns/wsdl/http" interface="tns:AtlasServiceInterface" name="AtlasServiceHTTPBinding"&gt; &lt;wsdl2:documentation&gt; &lt;/wsdl2:documentation&gt; &lt;wsdl2:operation ref="tns:login" whttp:method="POST" whttp:location="login"/&gt; &lt;/wsdl2:binding&gt; &lt;wsdl2:service interface="tns:AtlasServiceInterface" name="AtlasService"&gt; &lt;wsdl2:endpoint binding="tns:AtlasServiceHTTPBinding" name="AtlasServiceHTTPEndpoint" address="http://localhost:3000/api/"/&gt; &lt;/wsdl2:service&gt; &lt;/wsdl2:description&gt; </code></pre> <p>I know this is a HTTP binding... if it's not supported, an error message would be nice.</p> <p><strong>UPDATE0</strong> I should add that wsdl2java completes, and I get some java classes. AtlasServiceStub is there, but when I try to use it, there is no method for my login operation.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload