facebook

XFire client fault

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #260043 Reply

    Don Nelson
    Member

    I’m attempting to implement the bottom-up tutorial for the XFire web services, on Eclipse 3.2, MyEclipse 5.0.x GA, WebLogic 9.2. When my client attempts to access the web service, i get the following error:

    Exception in thread “main” org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Unexpected character ‘”‘ (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
    at [row,col {unknown-source}]: [1,55]
    org.codehaus.xfire.fault.XFireFault: Unexpected character ‘”‘ (code 34) in DOCTYPE declaration; expected a space between public and system identifiers

    Any ideas anyone?

    Thanks,

    Don

    #260102 Reply

    fratelic
    Member

    i am doing the same tutorials however, when we are supposed to open web services explorer to test the HelloWorld, i do not know what is URL of the WSDL document i am supposed to enter. i hope someone can enlighten me. 😉

    #261443 Reply

    jroneil
    Member

    I had the same same problem. Looking at the WEB XML according to the XFIRE web site it should look like this
    <servlet>
    <servlet-name>XFireServlet</servlet-name>
    <servlet-class>
    org.codehaus.xfire.transport.http.XFireConfigurableServlet
    </servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>XFireServlet</servlet-name>
    <url-pattern>/servlet/XFireServlet/*</url-pattern>
    </servlet-mapping>
    <!– begin not in tutorial–>
    <servlet-mapping>
    <servlet-name>XFireServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
    </servlet-mapping>
    <!– not in tutorial–>

    I add that to my xml and it worked
    The URL also change to

    http://localhost:8080/HelloWorld/services/HelloWorldService?wsdl

    I also believe that you may have to wait unit tomcat has completed it startup then
    used the web service browse.

    #261446 Reply

    jroneil
    Member

    This code was missing my mistake previous post
    <servlet-mapping>
    <servlet-name>XFireServlet</servlet-name>
    <url-pattern>/servlet/XFireServlet/*</url-pattern>
    </servlet-mapping>

    Joe

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XFire client fault

You must be logged in to post in the forum log in