as I can see from your output, there are some unwanted spare '>' characters, like in....
"{http://localhost:8080/jboost/stockquote.xsd}>TradePriceRequest", with...
To eliminate this problem, you have to clean up the files produced by WSDL2Java from these '>';
then compile java files, deploy the web service and retry
Dario
Nitin Mulimani ha scritto:
Hi,
I posted a similar message earlier, but yet to hear some response :-)
Anyways, I tried to generate WS from sample WSDL (section 1.2) in WSDL
specs, but have not been successful.
I have placed the wsdl at http://localhost:8080/jboost/stockquote.wsdl And my server side classes are in tomcat/webapps/jboost/WEB-INF/classes/server folder.
Since the element definition is included in the wsdl, I am not able to understand why I am getting this error. Am I referring to the "namespace" or "schema" in a proper way.
Thanks for your help in advance.
-- Nitin
Fault - makeTypeElement() was told to create a type
"{http://localhost:8080/jboost/stockquote.xsd}>TradePriceRequest", with
no containing element
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode: faultString: makeTypeElement() was told to create a type
"{http://localhost:8080/jboost/stockquote.xsd}>TradePriceRequest", with
no containing element
faultActor: faultNode: faultDetail:
<?xml version="1.0"?> <definitions name="StockQuote"
targetNamespace="http://localhost:8080/jboost/stockquote.wsdl" xmlns:tns="http://localhost:8080/jboost/stockquote.wsdl" xmlns:xsd1="http://localhost:8080/jboost/stockquote.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types> <schema targetNamespace="http://localhost:8080/jboost/stockquote.xsd" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="TradePriceRequest"> <complexType> <all> <element name="tickerSymbol" type="string"/> </all> </complexType> </element> <element name="TradePrice"> <complexType> <all> <element name="price" type="float"/> </all> </complexType> </element> </schema> </types>
<message name="GetLastTradePriceInput"> <part name="body" element="xsd1:TradePriceRequest"/> </message>
<message name="GetLastTradePriceOutput"> <part name="body" element="xsd1:TradePrice"/> </message>
<portType name="StockQuotePortType"> <operation name="GetLastTradePrice"> <input message="tns:GetLastTradePriceInput"/> <output message="tns:GetLastTradePriceOutput"/> </operation> </portType>
<binding name="StockQuoteSoapBinding" type="tns:StockQuotePortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="GetLastTradePrice"> <soap:operation soapAction="http://localhost:8080/jboost/GetLastTradePrice"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding>
<service name="StockQuoteService"> <documentation>My first service</documentation> <port name="StockQuotePort" binding="tns:StockQuoteSoapBinding"> <soap:address location="http://localhost:8080/jboost/stockquote"/> </port> </service>
</definitions>
