XML-RPC simple server

I wan't to make a simple XML-RPC server.
public class JavaServer
     public JavaServer()
     public static void main(String[] args)
          try
               WebServer server = new WebServer(8080);
               server.addHandler("test", new JavaServer());
               System.out.println("server started succesfully");
          catch(Exception ee)
               ee.printStackTrace();
Ok. Is there all I need? How can I run this server. If I run it from cmd, it just won't start running...I have one method to be called but all I need to get this erver running.
Hplz

Ok. The code is similar that mine but it jus wont start. If I try to start that WebServer class from cmd, everything goes well.

Similar Messages

  • Javax.xml.rpc.ServiceException: java.lang.NullPointerException

    Hello! Can somebody help me? I tried to call web service? usimg DII Client. Here is the code:
    String[] res = null;
    String nmsp = "urn:foo";//targetNamespace in WSDL
    String qnameService = "ServiceName";
    String qnamePort = "PortName";//<port name in WSDL
    String urlst = "service?wsdl";
    try {
    URL url = new URL(urlst);
    ServiceFactory factory = ServiceFactory.newInstance();
    javax.xml.rpc.Service serv = null;
    QName qName = null;
    try {
    qName = new QName(nmsp,qnameService);
    if (qName != null) {
    serv = factory.createService(url, qName);
    } else {
    System.out.println("qName = null" );
    } catch (Exception ex) {
    System.out.println("qnameService = " + qnameService);
    ex.printStackTrace();
    Call call = serv.createCall(new QName(nmsp, qnamePort), new QName(nmsp, "whatListsCat "));
    res = ((String[]) call.invoke(new Object[]{}));
    for (int i = 0; i < res.length; i++)
    System.out.println("res = " + res);
    } catch (Exception e) {
    e.printStackTrace();
    return res;
    And I have the Error in this place: serv = factory.createService(url, qName);
    Error is: javax.xml.rpc.ServiceException: java.lang.NullPointerException
    Maybe somebody knows what is the problem?
    Thank you!

    Hi Eric! I realy don't know what's wrong. I have tried to call web-service with XML Spy. When I called it first time everything was
    fine, it worked. But when I tried to invoke it once again and again I had this
    error: "HTTP error: could not POST file
    '/axis/services/VocabServerApi' on server '192.171.196.92'(500)". Here is the link to the wsdl file: http://vocab.ndg.nerc.ac.uk/VocabServerAPI.wsdl . Thank you for your help.
    Regards,
    Kristina

  • Javax.xml.rpc.ServiceException: java.lang.NullPointerExc

    Hello! Can somebody help me? I tried to call web service? usimg DII Client. Here is the code:
    String[] res = null;
    String nmsp = "urn:foo";//targetNamespace in WSDL
    String qnameService = "ServiceName";
    String qnamePort = "PortName";//<port name in WSDL
    String urlst = "service?wsdl";
    try {
    URL url = new URL(urlst);
    ServiceFactory factory = ServiceFactory.newInstance();
    javax.xml.rpc.Service serv = null;
    QName qName = null;
    try {
    qName = new QName(nmsp,qnameService);
    if (qName != null) {
    serv = factory.createService(url, qName);
    } else {
    System.out.println("qName = null" );
    } catch (Exception ex) {
    System.out.println("qnameService = " + qnameService);
    ex.printStackTrace();
    Call call = serv.createCall(new QName(nmsp, qnamePort), new QName(nmsp, "whatListsCat "));
    res = ((String[]) call.invoke(new Object[]{}));
    for (int i = 0; i >< res.length; i++)
    System.out.println("res = " + res);
    } catch (Exception e) {
    e.printStackTrace();
    return res;
    And I have the Error in this place: serv = factory.createService(url, qName);
    Error is: javax.xml.rpc.ServiceException: java.lang.NullPointerException
    Maybe somebody knows what is the problem?
    Thank you!

    Hi Eric! I realy don't know what's wrong. I have tried to call web-service with XML Spy. When I called it first time everything was
    fine, it worked. But when I tried to invoke it once again and again I had this
    error: "HTTP error: could not POST file
    '/axis/services/VocabServerApi' on server '192.171.196.92'(500)". Here is the link to the wsdl file: http://vocab.ndg.nerc.ac.uk/VocabServerAPI.wsdl . Thank you for your help.
    Regards,
    Kristina

  • Javax.xml.rpc.soap.SOAPFaultException: "Server Error" while calling a WSDL

    Hi
    I am using a WSDL in my java code by creating proxy.
    I am getting an exception on below line of code
    XX_RESPONSE res = port.XX_XX_Forecast(req);
    exception :
    javax.xml.rpc.soap.SOAPFaultException: "Server Error"
    hat could be the possibility.
    is it from XI side or Java side.
    Shall I catch a XI person on my floor to solve this !!
    To be more specific :
    Error is
    <detail xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
    <context>XIAdapter</context>
    <code>ADAPTER.JAVA_EXCEPTION</code>
    <text>com.sap.aii.af.service.cpa.CPAException: invalid channel (party:service:channel) = <null>
    at com.sap.aii.af.mp.soap.web.MessageServlet.getChannel(MessageServlet.java:499)
    at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(AccessController.java:215)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)</text>
    </s:SystemError>
    </detail>
    Thanks

    Hi...
    WSDL forwarded by my manager was wong
    I tested it and it threw same exception.
    nyways...1 more help..
    Now, is there any way in NWDS to replace contents of used WSDL.
    Because only 1 "=" is missing in WSDL..
    Thanks

  • Javax.xml.rpc.soap.SOAPFaultException: Server Error

    Hi,
    <P>
    I have Dyn Pro application deployed on NW app server. The application uses webservices on PI and the whole process working until a month back. Recently the application stopped working and throwing following error. Also I use following code for Authentication.
    <P>
    <P>
    I am not sure where the issue is? I looked at forums before posting and could not find anything. I wonder if any one ran into the issue and how is it fixed? I appreciate your help.
    <P>
    <P>
    CODE
    <P>
    <P>
    if ( port instanceof Stub ) {
    final Stub stub = (Stub)port;  stub._setProperty(Stub.USERNAME_PROPERTY,  "abcd");
    stub._setProperty(Stub.PASSWORD_PROPERTY, "123");
    } else if (port instanceof DInterfaceInvoker) {
    final DInterfaceInvoker invoker = (DInterfaceInvoker)port;
    invoker.setProperty(Stub.USERNAME_PROPERTY,  "abcd");
    invoker.setProperty(Stub.PASSWORD_PROPERTY, "123");
    <P>
    <P>
    Exception is:
    <P>
    <P>
    java.lang.RuntimeException: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'C:
    cliqbook
    wsdl
    MI_Project_Search_Request_Response1.wsdl' with operation 'MI_Project_Search_Request_Response' in interface 'MI_Project_Search_Request_Response' at com.app.freeman.search.cliqbook.CliqBookSearch.executeRequest_MI_Project_Search_Request_Response(CliqBookSearch.java:294) at com.app.freeman.search.cliqbook.wdp.InternalCliqBookSearch.executeRequest_MI_Project_Search_Request_Response(InternalCliqBookSearch.java:387) at com.app.freeman.search.cliqbook.CliqBookSearchView.onActionSearch(CliqBookSearchView.java:160) at com.app.freeman.search.cliqbook.wdp.InternalCliqBookSearchView.wdInvokeEventHandler(InternalCliqBookSearchView.java:380) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132) at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176) Caused by: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'C:
    cliqbook
    wsdl
    MI_Project_Search_Request_Response1.wsdl' with operation 'MI_Project_Search_Request_Response' in interface 'MI_Project_Search_Request_Response' ... 33 more Caused by: java.lang.reflect.InvocationTargetException: Server Error at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:927) at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1440) at MI_ProjectSearchRequestResponseBindingStub._invoke(MI_ProjectSearchRequestResponseBindingStub.java:99) at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceInvokerImpl.invokeOperation(DInterfaceInvokerImpl.java:63) at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:68) at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClassExecutable.execute(WSTypedModelClassExecutable.java:46) at com.app.freeman.search.cliqbook.CliqBookSearch.executeRequest_MI_Project_Search_Request_Response(CliqBookSearch.java:248) ... 32 more Caused by: javax.xml.rpc.soap.SOAPFaultException: Server Error at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.buildFaultException(MimeHttpBinding.java:737) at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:860) ...
    <P>
    Thank you,
    Balaji

    Ganga,
    Thank you for the reply. THe stand alone webservice runs fine on PI. I have already tested with stansalone client and it works. It seems to be webdyn pro failing in the following code.
    public void executeRequest_MI_Project_Search_Request_Response( )
        //@@begin executeRequest_MI_Project_Search_Request_Response()
        //$$begin Service Controller(763118099)
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
      try
         wdContext.currentRequest_MI_Project_Search_Request_ResponseElement().modelObject().wdSetInvocationModifier(new WSDLAuthentication());
          wdContext.currentRequest_MI_Project_Search_Request_ResponseElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
          wdContext.nodeMT_Project_Search_Response().invalidate();
          wdContext.nodeRecords().invalidate();
          wdContext.nodeReturn().invalidate();    
        catch(Exception e)
          manager.reportException(e.getMessage(), false);     
          throw new RuntimeException(e.fillInStackTrace());
        //$$end
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      private final class WSDLAuthentication implements IWDWSInvocationModifier {
                public void doModifyInvocation(final Object port) {
                        if ( port instanceof Stub ) {
                               final Stub stub = (Stub)port;
                               stub._setProperty(Stub.USERNAME_PROPERTY,  "abc");
                               stub._setProperty(Stub.PASSWORD_PROPERTY, "123");
                        } else if (port instanceof DInterfaceInvoker) {
                               final DInterfaceInvoker invoker = (DInterfaceInvoker)port;
                               invoker.setProperty(Stub.USERNAME_PROPERTY,  "abc");
                               invoker.setProperty(Stub.PASSWORD_PROPERTY, "123");
                        } else
                               throw new RuntimeException("Error");
                        public void doModifyAfterInvocation() {}
    Thankyou,
    Balaji
    Edited by: balaji uppalapati on Jul 27, 2010 3:17 PM

  • Using the fireworks XML RPC server

    Hi, I am trying to use the XML RPC server in fireworks to export pages of a PNG.
    The relevant help url: http://help.adobe.com/en_US/fireworks/cs/extend/WS5b3ccc516d4fbf351e63e3d1183c949219-7ffe. html
    And the pdf version: http://help.adobe.com/en_US/fireworks/cs/extend/fireworks_cs5_extending.pdf (chapter 7)
    All I want to do is open a file, call exportPages(), and close it. So far this has been a very painful experience. I have CS5 Design Premium on a mac (os 10.5) if it matters. But I have the same problem 1 with my copy of CS3.
    Problem 1
    Fireworks never ever returns a document id. It also does not return an error number. The value attribute of the returned obj element and any error attributes are empty. Here are some example calls and responses:
    request: <func name="createDocument" obj="fw"></func>
    response: <return><obj value="" class="DocumentClass"></obj></return>'
    request: <func name="closeDocument" obj="fw"><string order="0" value="0" /><bool order="1" value="false" /></func>
    response: <return error=""></return>
    Note the value of the response is empty. This is always the case, unless I get something back that is not an integer. For instance. I am able to get the path url of the open doc:
    request: <func name="getDocumentPath" obj="fw"></func>
    response: <return><string value="file:///Macintosh%20HD/Users/me/work/somefile.png"></string></return>
    Is anyone else using this with any success? Will a FW dev some here and set me straight? I am opening a socket with python like this:
    import socket
    self._sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    self._sock.connect(('localhost', 12124))
    It seems like anything that is an int on FW end doesn't come through the response?
    Problem 2
    When I open a file that was created in CS3 with the API, a blocking dialog pops up asking about converting the fonts. FW will not return my request until this dialog is dismissed. Is there any way around this? This pretty much nullifies any automation with fireworks on files create by an older version.
    Any help or insight into either of these would be extraordinarily helpful. Or if you have a way to export pages from a FW PNG without running fireworks, I would love love love to hear it. Judging by the RPC documentation, the availability of info online (virtually none!) and my experience with it, it seems adobe doesn't care about it all that much.

    Hi Priyanka. It seems you are using the JS api? Flash? I am trying to use this via the XML RPC server in fireworks. Those are precisely the calls I am making to the RPC server with no avail: they do not return document ids. If you get a chance, can you (or anyone) run the following python code? Just open fireworks CS5, open a file and run this python code. It should return (print) the document id of the current document in a value="" attribute.
    import socket
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect(("localhost", 12124))
    dom = '<func name="getDocumentDOM" obj="fw"><string order="0" value="document" /></func>\0'
    s.send(dom)
    res = []
    r = s.recv(1)
    while ord(r):
        res.append(r)
        r = s.recv(1)
    print ''.join(res)
    Like I said earlier, this code works for me with CS3, but does not work with CS5; value="" is empty.
    I am not running this on a server. I am just trying to do some batch processing.
    Ben

  • OVM Server login through xml-rpc

    Hi,
    I installed OVM Server 2.2.1 on a x86 pc. Interested in remote control of OVM through xml-rpc, I try to login through xml-rpc. The python codes which are referenced from Xen API are:
    *>>> import xmlrpclib*
    *>>> server = xmlrpclib.Server("http://mypc:8006")*
    *>>> session = server.session.login_with_password("xxxx", "xxxx")*
    The OVM Server can't be login. The error message is:
    *{'Status': 'Failure', 'ErrorDescription': ['MESSAGE_METHOD_UNKNOWN', 'session.login_with_password']}*
    I have modified /etc/xen/xend-config.sxp as follows before login:
    *1. (xend-tcp-xmlrpc-server yes)*
    *2. (xend-tcp-xmlrpc-server-address 'mypc')*
    *3. (xend-tcp-xmlrpc-server-port 8006)*
    Then I restart xend.
    OVM Server support xml-rpc, since the communication between OVM Server and Manager is through xml-rpc. From feedback error message, the socket communciation is OK. I wonder whether xmlrpclib is modified, or the question lies on password and username?
    Thanks for any help.
    Edited by: 854681 on Apr 26, 2011 2:30 AM
    Edited by: 854681 on Apr 26, 2011 2:31 AM

    Hi,
    I would not mess around with xml-rpc, because the calls are not documented by Oracle.
    So if you change the OVS_AGENT/MANAGER it might be, that these calls change.
    As an alternative I would suggest either taking the web-service API, which the OVM Manager provides, or use ovmcli, if you prefer the commandline.
    Regards
    Sebastian

  • Javax.xml.rpc.JAXRPCException ???????

    I have deployed a simple web service using Apache Tomcat 6.0 and Axis 1.4 in Windows XP. Now the server is very simple:
    [code]
    import java.io.*;
    import java.util.*;
    HelloWorld.java
    This is our web service
    public class HelloWorld
    public String getHelloWorld(String id)
    String retName="";
    try
                   File indexFile = new File("index.txt");
                   retName=indexFile.getAbsolutePath()+id;
              catch(Exception e)
                   e.printStackTrace();
         return retName;
    [/code]
    Now if the client doesn't send any parameters then everything works well. But as sson as I try to send a parameter to the server, I get the following error:
    "javax.xml.rpc.JAXRPCException: Number of parameters passed in (0) doesn't match the number of IN/INOUT parameters (1) from the addParameter() calls"
    Why is this happening??? My client is also very simple:
    [code]
    package dummyC;
    import java.util.*;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.utils.Options;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.*;
    public class DummyC {
    @param args
         public static void main(String[] args)
              try
              Service service = new Service();
              Call call = (Call)service.createCall();
              String endpoint ="http://localhost:8081/axis/HelloWorld.jws";
              call.setTargetEndpointAddress(new java.net.URL(endpoint));
              call.setOperationName(new QName("getHelloWorld"));
              call.addParameter("param1",XMLType.XSD_STRING, ParameterMode.IN);
              String output = (String)call.invoke(new Object[]{});
              System.out.println("Got result : " + output);
              catch(Exception e)
                   System.out.print("sssss: "+e.toString());
    [/code]
    Please guys, I need to solve this problem with in the next couple of days.
    Bye.

    Thanks.
    "manoj cheenath" <[email protected]> wrote:
    Next release (JAX-RPC 1.0) is at the end of this month.
    regards,
    -manoj
    "Nick Minutello" <[email protected]> wrote
    in message news:3d0a4b71$[email protected]..
    Great. thanks.
    However, I think you are using a new version of WLS JAX-RPC. The
    javax.xml.rpc.JAXRPCException.getLinkedCause() is not in my version (0.8).Is there
    a new version available.
    Regards,
    Nick
    "manoj cheenath" <[email protected]> wrote:
    Hi Nick,
    set the following system property:
    weblogic.webservice.verbose=true
    while starting the client. This will print the xml soap message
    that is send/received by the client.
    Also you get to the actual exception by calling:
    javax.xml.rpc.JAXRPCException.getLinkedCause()
    regards,
    -manoj
    "Nick Minutello" <[email protected]>
    wrote
    in message news:3d0949cf$[email protected]..
    I get the following error invoking a web service client.
    There is not too much information to go on.
    The exception is happenning somewhere in the Weblogic Code. There islittle information
    given in the error message.
    Is there any debug setting I can set so that I can get more of an idewhat
    is going
    on?
    Cheers,
    Nick
    javax.xml.rpc.JAXRPCException: web service invoke failed
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:188)
    at
    com.x.facade.webservice.ServicePort_Stub.getBondSummaries(ServicePort_Stub.j
    ava:55)
    at TestWebService.doTest(TestWebService.java:94)
    at TestWebService.main(TestWebService.java:28)

  • Question about building xml-rpc client in swing

    Hi all,
    I'm going to build swing client for simple xml-rpc server, but I've little experience in swing.
    My application should create kind of XmlRpcClient object. It was no problem in console application, there was one client object and that's all. Now in swing I've no idea how to do it when I have more than one frame. Is it ok to create client object in base frame and then pass its reference to other frames in constructor? Maybe there is another/better way to do this?
    Thanks

    First, Dreamweaver is much more than a glorified FTP client! Dreamweaver is a Web site authoring and management application. That is the program you should use to build your HTML, not Fireworks.
    Fireworks is a Web layout/design and graphics production application. Fireworks can export HTML or HTML and CSS, but that export ability is intended to create mockups and prototypes, not live sites. The code Fireworks creates is...well...awful. You need to learn how to write HTML from scratch, not let a graphics program write it for you.
    The single .png file is also not going to work for you. The page you link to has several separate images. You need to create slices on your Fireworks document and export them as individual images, which you then reference in the HTML.
    Here are a couple of good tutorials for beginners:
    http://www.sitepoint.com/article/html-css-beginners-guide/
    http://net.tutsplus.com/tutorials/html-css-techniques/design-and-code-your-first-website-i n-easy-to-understand-steps/
    This tutorial is on the general theory of slicing. As such, it's helpful: http://www.slicingguide.com/
    In Fireworks, you use the slicing tool (looks like a green rectangle), to draw slices over the areas you want to export as individual images. These green rectangles appear in the Web layer. You can set the export properties of each slice separately. When you export, you can export all your images, or just the images from selected slices. And I really haven't said anything, so start with the help files, then post back with specific qustions.
    As to your 403 error problem, it's something with the configuration of the server, it has nothing to do with Fireworks or Dreamweaver. Read these articles:
    http://www.checkupdown.com/status/E403.html
    http://en.wikipedia.org/wiki/HTTP_403

  • Code alteration - Basic problem or XML-RPC?

    I'm trying to alter the following client/server code to create an XML-RPC such that when the client offers an argument eg ?John? then the result of the method call returned to the client would be ?John*John? rather than the result of the equation currently shown.
    I'm not sure if it's just my lack of knowledge or something in the basic data types in XML-RPC
    Any help much appreciated.
    Client
    [ code ]
    import java.util.*;
    import org.apache.xmlrpc.*;
    //simple XML-RPC client that makes an XML-RPC request to a Server
    public class XMLRPCClient {
    public static void main(String args[]) {
    try {
    // Specify the server
    XmlRpcClient server = new XmlRpcClient("http://localhost/RPC2");
    // Create request
    Vector params = new Vector();
    params.addElement(new Integer(17));
    params.addElement(new Integer(13));
    // Make a request and print the result
    Object result = server.execute("sample.sum", params);
    int sum = ((Integer ) result).intValue();
    System.out.println("Response from server: " + sum);
    } catch (Exception exception) {
    System.err.println("JavaClient: " + exception);
    [ /code ]
    Server
    [ code ]
    import org.apache.xmlrpc.*;
    //XMLRPCServer is a simple XML-RPC server
    public class XMLRPCServer {
    //Start up the XMLRPC server and register a handler.
    public Integer sum(int x, int y) {
    return new Integer(x+y);
    public static void main (String [] args) {
    try {
    System.out.println("Attempting to start XML-RPC Server...");
    WebServer server = new WebServer(80);
    server.addHandler("sample", new XMLRPCServer());
    server.start();
    System.out.println("Started successfully.");
    System.out.println("Accepting requests. (Halt program to stop.)");
    } catch (Exception exception) {
    System.err.println("JavaServer: " + exception);
    [ /code ]

    cause of the error:
    After some extensive research on the web, it is found that that you are using an UTF-8 encoded file with byte-order mark (BOM). Java doesn't handle BOMs on UTF-8 files properly, making the three header bytes appear as being part of the document. UTF-8 files with BOMs are commonly generated by tools such as Window's Notepad. This is a known bug in Java, but it still needs fixing after almost 8 years...
    There are some hexadecimal character at the begining of the file, which is giving error"content not allowed in prolog". No solution is provided for this till now.
    Example: suppose your file start with <?xml version="1.0" encoding="utf-8"?>. you will see this in a editor. But if you open this file with any hexadecimal editor you will find some junk character in the start of the file.that is causing the problem
    solution:
    1) convert your file into a string and then read the file from the forst character that in my case the first character will be "<".so the junk character will not be there in the string and then again convert it into a file.
    2) some people are able to solve this problem by changing the "utf-8" to "utf-16". remember only in some case. some times this problem also exits in "utf-16" file.
    3) some are able to solve this problem by changing the LANG to US.en.
    4) If the first three bytes of the file have hexadecimal values EF BB BF then the file contains a BOM.so you can also handle by your own.
    5)Download a hexadecimal editor and remove the BOM.
    6) In case you are not able to think furthe then please to more research in internet may be you find some other solution to this problem. But These solution are some type of hack not exactly a solution.

  • Weblogic with XML-RPC RuntimeModelerException

    I am having problems invoking a SOAP Web Service from an XML-RPC Web Service. They are both deployed on WebLogic.
    Here are the details:
    We have ported a JBOSS .esb application that implements XML-RPC Web Services to a WebLogic .ear application. The porting was successful. Bellow you can see the the .ear archive structure:
        xmlrpc-services-app.ear
            + lib
                + aopalliance-1.0.jar
                + aspects-5.2.0.jar
                + commons-codec-1.3.jar
                + commons-collections-3.2.jar
                + commons-lang-2.4.jar
                + commons-logging-1.1.jar
                + container-common-api-5.2.0.jar
                + jettison-1.2.jar
                + junit-3.8.1.jar
                + log4j-1.2.16.jar
                + mysql-connector-java-5.1.12.jar
                + openads-api-xmlrpc-1.xmlrpc3.cmt_fix.2.jar
                + snmpTrapAppender-1.2.9.jar
                + spring-aop-3.0.1.RELEASE.jar
                + spring-asm-3.0.1.RELEASE.jar
                + spring-beans-3.0.1.RELEASE.jar
                + spring-context-3.0.1.RELEASE.jar
                + spring-context-support-3.0.1.RELEASE.jar
                + spring-core-3.0.1.RELEASE.jar
                + spring-expression-3.0.1.RELEASE.jar
                + spring-jdbc-3.0.1.RELEASE.jar
                + spring-ldap-1.2.1.jar
                + spring-security-core-2.0.5.RELEASE.jar
                + spring-tx-3.0.1.RELEASE.jar
                + spring-web-3.0.1.RELEASE.jar
                + lib-common-tools-1.5.jar
                + lib-security-1.5.jar
                + stax-api-1.0.1.jar
                + ws-commons-util-1.0.2.jar
                + xml-apis-1.0.b2.jar
                + xmlrpc-client-3.1.3.jar
                + xmlrpc-common-3.1.3.jar
                + xmlrpc-server-3.1.3.jar
            + META-INF
                + MANIFEST.MF
                + application.xml
                + weblogic-application.xml
            + xmlrpc-services-app.war
                + META-INF - generated by Maven
                + WEB-INF
                    + classes
                    + jboss-web.xml
                    + lib
                        + apache-mime4j-0.6.1.jar
                        + commons-codec-1.4.jar
                        + commons-logging-1.1.jar
                        + httpclient-4.2-beta1.jar
                        + httpcore-4.2-beta1.jar
                        + httpmime-4.2-beta1.jar
                        + servlet-api-2.3.jar
                        + offersService-Client-1.0.jar
                    + web.xml
                + index.jsp - not really usedThe `offersService-Client-1.0.jar` contains a Web Service definition (not the implementation) and is used to invoke the Offers Web Service. The WS client and the jar were created using JDeveloper. The key files inside this jar are:
        GetOfferRequest.class
        ObjectFactory.class
        Offer.class
        OffersPortType.class
        OffersSchema.xsd
        OffersService.class
        OffersService.wsdl
        OffersService.xmlWhen invoking this WS from a class in the xmlrpc-services-app.ear, I get the following error:
        com.sun.xml.ws.model.RuntimeModelerException: A WebService annotation is not present on class: offers.OffersPortType
                at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:237)
                at com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:762)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.buildRuntimeModel(WLSProvider.java:982)
                at com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:746)
                at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:737)
                at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:361)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.internalGetPort(WLSProvider.java:934)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate$PortClientInstanceFactory.createClientInstance(WLSProvider.java:1039)
                at weblogic.wsee.jaxws.spi.ClientInstancePool.takeSimpleClientInstance(ClientInstancePool.java:376)
                at weblogic.wsee.jaxws.spi.ClientInstancePool.take(ClientInstancePool.java:232)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:852)
                at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
                at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
                at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
                at javax.xml.ws.Service.getPort(Service.java:92)
                at offers.OffersService.getOffersPort(OffersService.java:68)HOWEVER, when I invoke it from a simple Web Service created in JDeveloper and deployed on WebLogic or even from the command line (so outside the WebLogic context), I do not get this error.
    Here is how I create the client for the service:
    OffersService offersService = new OffersService();
    OffersPortType offersPortType = offersService.getOffersPort(); // it crashes hereDo you have any idea of what might be wrong?
    If you need any other details, please do not hesitate to ask.

    carYang wrote:
    > Can you use cfinvoke with XML-RPC arguments or is it
    just for SOAP methods?
    >
    > Does anyone have an example of passing XML-RPC?
    http://www.fusionteam.co.uk/blog/2008/02/19/xml-rpc-using-coldfusion-and-microsoftxmlhttp- com-object/
    But you can also do it with CFHTTP.
    Mack

  • Doing XML-RPC on J2ME devices

    I'm interested in doing some very simple XML-RPC (http://www.xmlrpc.com/) on a MIDP1.0 type of device.
    I discovered the useful but now apparently defunct kxmlrpc (http://kxmlrpc.objectweb.org/project/aboutProject/index.html). After spending two days chasing, and finally "fixing", an obscure, missing invocation of parser.skip() in XmlRPCParser.parseValue(), I concluded there has to be a better way to do XML-RPC on J2ME.
    I discovered JSR 172, but it looks like the API encourages SOAP programming, which doesn't meet my XML-RPC requirement. I could find no examples illustrating how to to XML-RPC with JSR 172 interfaces, although this doesn't prove one can't.
    How are people doing XML-RPC on J2ME these days? I'm baffled.
    Thanks.

    For those who may be interested, here are the mods I made to the kxmlrpc XML-RPC parser:
    1. In XmlRpcParser.java, add a parser.skip() before the parser.read() in parseValue()
    parser.skip();
    parser.read( Xml.START_TAG, "", "value" );
    2. In XmlRpcWriter.java, add a writeLegacy() before the methodCall start tag is written in writeCall()
    writer.writeLegacy(Xml.PROCESSING_INSTRUCTION,"xml version=\"1.0\"");
    writer.startTag( "methodCall" );
    Both of these changes probably a result of the difference in the XML-RPC server I used vs. what the author of kxmlrpc used. My XML-RPC server refused to accept the call without the XML processor instruction <?xml version="1.0"?>. And the parser was thowing 'unexpected' exceptions before the whtespace was stripped off the front end of <value> tags coming back in the response.
    In all, kxmlrpc seems to work fine for the basic data structures I'm dealing with (Strings, simple structs). I just wish there was a standard J2ME way of doing this sort of web service.
    http://kxmlrpc.objectweb.org/project/aboutProject/index.html

  • I know nothing about XML-RPC-Plz help

    First of all let me tell you that I am fairly new to XML and XML-RPC and how to parse and manipulate it in java.
    So please prepare yourself for some stupid questions and spare me for that;P.
    Here is my task, which I still have no exact idea that how to do it?
    Ive been told that this is our XML-RPC request is something like this
    <?xml version="1.0"?>
    <methodCall>
       <methodName>examples.getStateName</methodName>
       <params>
          <param>
             <value><i4>41</i4></value>
             </param>
          </params>
       </methodCall>Reply will be something like this
    <?xml version="1.0"?>
    <methodResponse>
       <params>
          <param>
             <value><string>South Dakota</string></value>
             </param>
          </params>
       </methodResponse>and the language is JAVA.
    Now please tell me that, if I am using Java as my programming language and someone tells me all that I specified above, will the communication occur through java programms as all the tutorials specify?
    OR
    Do I need to send the simple XML file to the server and will receive another XML response file in return ?
    Another question
    If Java does every thing, then what is the use of giving XML request and response format?

    If Java does every thing, then what is the use of
    giving XML request and response format?Java does not do everything . Here is an illustrative example.
    You need to get information from the XYZ server in China and use it to calculate a formula. Once the formula is calculated, you need to send the calculation to a server in Denmark.
    The server in China is a .NET application.
    The server in Denmark is a Perl application.
    Your server in Kuwait is written in Java.
    You send the XML request to the .NET application.
    The .NET application processes the request and sends you an XML response.
    Your server then does something with the response and sends a second XML request to Denmark.
    The Perl application in Demark processes your request.

  • Java.lang.ClassNotFoundException: com.sun.xml.rpc.client.ServiceFactoryImpl

    Hi Forum:
    i want to explain you my problem i created a webservice with JDeveloper 10.1.3, and run perfectly but when i want to run it in another IDE i copied the codes to a another IDE and run perfectly in a simple java project in my different IDE but when i putted the code in a web application in another web server differente to the oracle i got this error message
    vax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: com.sun.xml.rpc.client.ServiceFactoryImpl ------------------------- Loader Info ------------------------- ClassLoader name:
    i don�t know what�s happening and is so strange because i make one simple java project in eclipse and i copied the codes and works fine, but in a web application i can�t run it.
    I also founded it the jar to this class com.sun.xml.rpc.client.ServiceFactoryImpl
    but doesn�t work
    Can somebody help me, please?.. i really need it..
    thnks
    joshua

    It usually means that a JAR in which the class file resides is not included in the web-app or is not on the classpath. Had the same problem with the last Eclipse/WebLogic project where JAR files, in which class files resided on which other class files were dependent, were missing.
    Ronald

  • SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Exception during processi

    Hi: We are using weblogic81 sp3. Other developers in my office ran the same porgram and got no errors.
    My startWebLogic.cmd are configured exactly same as theirs.
    My startWebLogic classpath:
    set CLASSPATH=%WL_HOME%\server\lib\ojdbc14.jar;%WL_HOME%\server\lib\CR122067_81sp3.jar;%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%
    I keep getting this webservice error.
    SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Exception during processing: w
    eblogic.xml.schema.binding.DeserializationException: mapping lookup failure. typ
    e=['java:language_builtins.util']:ArrayList schema context=TypedSchemaContext{ja
    vaType=[Ljava.lang.Object;} (see Fault Detail for stacktrace)
    Detail:
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webse
    rvice/fault/1.0.0">weblogic.xml.schema.binding.DeserializationException: mapping
    lookup failure. type=['java:language_builtins.util']:ArrayList schema context=T
    ypedSchemaContext{javaType=[Ljava.lang.Object;}
    at weblogic.xml.schema.binding.RuntimeUtils.lookup_deserializer(RuntimeU
    tils.java:461)
    thank you for your help

    we used castor to do xml mapping

Maybe you are looking for