It's possible that the problem is caused by the fact that your targetnamespace is not a valid URI (although I would expect a different error message). Try changing your namespace to "urn:TagManagerWS" and see if that makes a difference.
Anne On 8/14/06, Bjørnar Selsbak <[EMAIL PROTECTED]> wrote:
Hi, I'm trying to create my first Webservice with AXIS but I get this error when try to access the URL .....?wsdl Fault - makeTypeElement() was told to create a type.... I see others have reported this kind of error, but I'm unable to get much out of it. Is it something wrong with my wsdl or is it a bug (I get the same result in both AXIS 1.2 and AXIS 1.3) ? These are the steps I've done. Created the wsdl Wsdl2java Compile deploy I'm a newbie to webservices, but I appriciate if someone could point me in the right direction? Regards Bjornar Selsbak Lindbak Retail Systems Norway Here's the wsdl... <?xml version="1.0" ?> <definitions name="TagManagerWS" targetNamespace="TagManagerWS" xmlns:tns="TagManagerWS" xmlns:types="TagManagerWS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <!-- Type defs --> <types> <xsd:schema targetNamespace="TagManagerWS" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="Response"> <xsd:complexType> <xsd:sequence> <xsd:element name="Code"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="OK"/> <xsd:enumeration value="NOK"/> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="Message" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="getESL"> <xsd:complexType> <xsd:sequence> <xsd:element name="Ean" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="getESLResponse"> <xsd:complexType> <xsd:sequence> <xsd:element ref="types:Response" /> <xsd:element name="ESLs"> <xsd:complexType> <xsd:sequence> <xsd:element name="ESL" type="xsd:string" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </types> <!-- Parameters to the operations --> <message name="getESLReq"> <part name="parameters" element="types:getESL" /> </message> <message name="getESLResp"> <part name="parameters" element="types:getESLResponse" /> </message> <!-- Description of the service --> <portType name="TagManager"> <operation name="getESL"> <input message="tns:getESLReq" /> <output message="tns:getESLResp" /> </operation> </portType> <!-- Message format and protocol for each port --> <binding name="TagManagerSOAPBinding" type="tns:TagManager"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <operation name="getESL"> <soap:operation style="document" soapAction="getESL" /> <input> <soap:body use="literal" /> </input> <output> <soap:body use="literal" /> </output> </operation> </binding> <!-- Service... --> <service name="TagManagerService"> <port name="TagManager" binding="tns:TagManagerSOAPBinding"> <soap:address location="http://TESTDIV/services/TagManager" /> </port> </service> </definitions> Here's the error message... Sorry, something seems to have gone wrong... here are the details: Fault - makeTypeElement() was told to create a type "{TagManagerWS}>Response", with no containing element AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: makeTypeElement() was told to create a type "{TagManagerWS}>Response", with no containing element faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:testdiv --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
