Forum Discussion

WillMoore's avatar
WillMoore
Occasional Contributor
13 years ago

gSOAP generated WSDL using xmlmime does not load

I am using soapUI v4.5.1. I have some WSDL generated by gSOAP soapcpp2 for a web service using XOP. The WSDL contains xmlns:xmlmime="http://www.w3.org/2004/11/xmlmime". When I try to add the WSDL to soapUI I get the following error:

Error loading [file:/C:/Documents%20and%20Settings/WMoore/Desktop/BeranAPM.wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Prefix can't begin with XML: xmlmime

I have found an old thread on the gSOAP message board http://markmail.org/thread/l7cw4xkofe2t ... te:results but I am just not sure I agree that it is OK for soapUI to be so picky as to refuse to add this WSDL. I apprecaite if you are making up your own prefix you should avoid xml* but this is w3 stuff isn't it? See http://www.w3.org/TR/xop10/

TIA

Will
  • WillMoore's avatar
    WillMoore
    Occasional Contributor
    Thanks for the response. So soapui uses xmlbeans, and xmlbeans is broken for XOP, so soapui is broken for XOP. OK, at least I understand the problem. But your workaround does not work for me, if I rename the prefixes in my wsdl from xmlmime to e.g. mimexml, soapui is still going to pull in http://www.w3.org/2004/11/xmlmime which uses the xmlmime prefix:

    Error loading [http://www.w3.org/2004/11/xmlmime]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Prefix can't begin with XML: xmlmime
  • MartinSpamer's avatar
    MartinSpamer
    Frequent Contributor
    XmlBeans is open source, you could download XmlBeans from Apache

    removed lines, 3324-3333 from org.apache.xmlbeans.impl.store.Locale

    Build it and replace your local XmlBean jar.
  • WillMoore's avatar
    WillMoore
    Occasional Contributor
    Thanks for your help, I realise as this is open source I could fix it but have to confess I was just looking at soapui to see if it could be useful to me, found it broken, and thought you might want to know ;-)