Loading ...
Sorry, an error occurred while loading the content.

RE: Re: [soapbuilders] WSDLException: faultCode=OTHER_ERROR: Can' t find prefix for "http://dom.w3c.org"; Namespace prefixes must be set on the Definition object using the addNamespace(...) method.

Expand Messages
  • Tom Jordahl
    This sounds like a great question for the Axis User mailing list. See http://ws.apache.org/axis/mail.html Soapbuilders is usually for the discussion of
    Message 1 of 1 , Jul 6, 2004
    • 0 Attachment
      This sounds like a great question for the Axis User mailing list.
      See http://ws.apache.org/axis/mail.html

      Soapbuilders is usually for the discussion of implementation details and
      interoperability.

      --
      Tom Jordahl

      -----Original Message-----
      From: Christo Popov [mailto:h_popov@...]
      Sent: Tuesday, July 06, 2004 6:38 AM
      To: soapbuilders@yahoogroups.com
      Subject: Re: Re: [soapbuilders] WSDLException: faultCode=OTHER_ERROR: Can't
      find prefix for "http://dom.w3c.org"; Namespace prefixes must be set on the
      Definition object using the addNamespace(...) method.

      Ok, maybe I am wrong since I don't use Axis now, but
      it seems to me that you want to send DOM Element as
      Response.

      However you use SOAP RPC Style. It is very strange to
      me. If you wish to send XML Document, you should use a
      Message style Web Service (MSG provider in Axis).

      With
      <namespace>http://ccert.edu.cn/myservice</namespace>
      you declare http://ccert.edu.cn/myservice as
      namespace. So it is on conflict with
      http://dom.w3c.org.

      Maybe you can change it to http://dom.w3c.org? I don't
      know.

      Someone else maybe will have an idea...

      --- xrlccert <xierulei@...> a écrit : >
      First, thank you, Christo.
      > Yes, I should check the those files; and I've really
      > checked them, but can find nothing. So sorry.
      > Sure if it is ok there will be "http://dom.w3c.org"
      > in the response, because I use it in the
      > deploy.wsdd, which I find nothing wrong.
      > In my service program and the result from my program
      > there is no "http://dom.w3c.org". Only in my
      > deploy.wsdd there is it.
      >
      > My deploy.wsdd is as following:
      > <deployment
      > xmlns="http://xml.apache.org/axis/wsdd/"
      > xmlns:ns="http://ccert.edu.cn/myservice"
      >
      >
      xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
      > xmlns:w3cdom="http://dom.w3c.org">
      > <service name="MyService" provider="java:RPC">
      >
      > <namespace>http://ccert.edu.cn/myservice</namespace>
      > <parameter name="className"
      > value="MyService"/>
      > <parameter name="allowedMethods" value="*"/>
      >
      > <typeMapping
      > qname="w3cdom:Element"
      > type="java:org.w3c.dom.Element"
      >
      >
      serializer="org.apache.axis.encoding.ser.ElementSerializerFactory"
      >
      >
      deserializer="org.apache.axis.encoding.ser.ElementDeserializerFactory"
      >
      >
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      > />
      >
      > </service>
      > </deployment>
      >
      > Are there any questions in this deploy.wsdd file? I
      > can't find it.
      > Can somebody find any reasons?
      > Hope for the reply.
      >
      > Rulei
      >
      >
      >
      > ¡¡¡¡
      >
      > ======== 2004-07-06 16:27:43 You wrote£º ========
      >
      > what is your method definition and your deployment
      > file? You should check them.
      > It seems that there is a namespace
      > 'http://dom.w3c.org' in the response??? Where is it
      > from?
      >
      > --- xrlccert <xierulei@...> a écrit? >
      > Hello, everybody!
      > > I have encountered a very stubborn problem. Can
      > > somebody give me some advices?
      > > Thanks in advance.
      > > Here is my problem:
      > > When I use
      > > http://localhost:8080/axis/services/MyService?wsdl
      > > to view the WSDL file, it shows me this AXIS Error
      > > as following:
      > >
      > > AXIS error
      > > Sorry, something seems to have gone wrong... here
      > > are the details:
      > > Fault - ; nested exception is:
      > > WSDLException: faultCode=OTHER_ERROR:
      > Can't
      > > find prefix for 'http://dom.w3c.org'.
      > > Namespace prefixes must be set on the Definition
      > > object using the addNamespace(...) method.:
      > > AxisFault
      > > faultCode:
      > >
      >
      {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
      > > faultSubcode:
      > > faultString: WSDLException:
      > faultCode=OTHER_ERROR:
      > > Can't find prefix for
      > > 'http://dom.w3c.org'. Namespace prefixes
      > > must be set on the Definition object using the
      > > addNamespace(...) method.:
      > > faultActor:
      > > faultNode:
      > > faultDetail:
      > >
      >
      >
      >
      >
      >
      >
      > Créez gratuitement votre Yahoo! Mail avec 100 Mo de
      > stockage !
      > Créez votre Yahoo! Mail sur
      > http://fr.benefits.yahoo.com/
      >
      > Dialoguez en direct avec vos amis grâce ?Yahoo!
      > Messenger !Téléchargez Yahoo! Messenger sur
      > http://fr.messenger.yahoo.com
      >
      >
      >
      -----------------------------------------------------------------
      > This group is a forum for builders of SOAP
      > implementations to discuss implementation and
      > interoperability issues. Please stay on-topic.
      >
      >
      > Yahoo! Groups Sponsor
      > ADVERTISEMENT
      >
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      > To visit your group on the web, go to:
      > http://groups.yahoo.com/group/soapbuilders/
      >
      > To unsubscribe from this group, send an email to:
      > soapbuilders-unsubscribe@yahoogroups.com
      >
      > Your use of Yahoo! Groups is subject to the Yahoo!
      > Terms of Service.
      >
      >
      >
      > = = = = = = = = = = = = = = = = = = = = = =
      > ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
      > Àñ£¡
      >
      > ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡xrlccert
      > ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡xierulei@...
      > ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-07-06
      >
      >
      > ------------------------ Yahoo! Groups Sponsor
      > --------------------~-->
      > Yahoo! Domains - Claim yours for only $14.70
      >
      http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/W6uqlB/TM
      >
      --------------------------------------------------------------------~->
      >
      >
      >
      -----------------------------------------------------------------
      > This group is a forum for builders of SOAP
      > implementations to discuss implementation and
      > interoperability issues. Please stay on-topic.
      > Yahoo! Groups Links
      >
      >
      > soapbuilders-unsubscribe@yahoogroups.com
      >
      >
      >






      Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
      Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

      Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez
      Yahoo! Messenger sur http://fr.messenger.yahoo.com



      -----------------------------------------------------------------
      This group is a forum for builders of SOAP implementations to discuss
      implementation and interoperability issues. Please stay on-topic.
      Yahoo! Groups Links
    Your message has been successfully submitted and would be delivered to recipients shortly.