XML-RPC problem.

Nevermind... I'm gonna just delve into the source code of the library and see if i can't find the problem. I think it may be a bug in the library, not something I'm doing wrong.
-Nivek98
Message was edited by:
nivek98

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.

Similar Messages

  • Problems with XML-RPC

    Hi everybody.
    Sorry, I've got a french accent, then if you don't understand, dont' be worry ^^
    I try using the apache's xmpl-rpc package, and I have got some problems with the xml-rpc client.
    Here my source :
    public interface ICalculator {
         public int add(int i1, int i2);
         public int subtract(int i1, int i2);
    public class Calculator implements ICalculator {
         public int add(int i1, int i2) {
              return i1 + i2;
         public int subtract(int i1, int i2) {
              return i1 - i2;
    import org.apache.xmlrpc.server.PropertyHandlerMapping;
    import org.apache.xmlrpc.server.XmlRpcServer;
    import org.apache.xmlrpc.server.XmlRpcServerConfigImpl;
    import org.apache.xmlrpc.webserver.WebServer;
    public class Server {
    private static final int port = 8080;
    public static void main(String[] args) throws Exception {
    WebServer webServer = new WebServer(port);
    XmlRpcServer xmlRpcServer = webServer.getXmlRpcServer();
    PropertyHandlerMapping phm = new PropertyHandlerMapping();
    phm.addHandler(Calculator.class.getName(), Calculator.class);
    phm.addHandler(ICalculator.class.getName(), ICalculator.class);
    xmlRpcServer.setHandlerMapping(phm);
    XmlRpcServerConfigImpl serverConfig =
    (XmlRpcServerConfigImpl) xmlRpcServer.getConfig();
    serverConfig.setEnabledForExtensions(true);
    serverConfig.setContentLengthOptional(false);
    webServer.start();
    System.out.println("Serveur XML-RPC is ready");
    import org.apache.xmlrpc.client.XmlRpcClient;
    import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
    import org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory;
    import org.apache.xmlrpc.client.util.ClientFactory;
    public class Client {
    public static void main(String[] args) throws Exception {
    // create configuration
    XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
    config.setServerURL(new URL("http://127.0.0.1:8080/xmlrpc"));
    config.setEnabledForExtensions(true);
    config.setConnectionTimeout(60 * 1000);
    config.setReplyTimeout(60 * 1000);
    XmlRpcClient client = new XmlRpcClient();
    System.out.println("Connection");
    // use Commons HttpClient as transport
    client.setTransportFactory(
    new XmlRpcCommonsTransportFactory(client));
    // set configuration
    client.setConfig(config);
    ClientFactory factory = new ClientFactory(client);
    ICalculator calc = (ICalculator)factory.newInstance(ICalculator.class); //Problems here !!!
    System.out.println("Calculing");
    System.out.println("Result : " + calc.add(2, 3));
    And the error is:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpException
         at org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory.getTransport(XmlRpcCommonsTransportFactory.java:31)
         at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
         at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
         at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
         at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
         at org.apache.xmlrpc.client.util.ClientFactory$1.invoke(ClientFactory.java:104)
         at $Proxy0.add(Unknown Source)
         at projet.Client.main(Client.java:45)
    Can you help please ?

    The problem is not related to your code, but it seems that there is a missing jar which contains the class org.apache.commons.httpclient.HttpException or perhaps the jar isn't included in your CLASSPATH.
    The jar seems to be commons-httpclient.jar you can found at http://jakarta.apache.org/commons/httpclient

  • 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.

  • Fehler javax.xml.rpc.soap.SOAPFaultException: System Error

    Hi,
    I tried to create a web service with XI with the help of the blog: Invoke Webservice using SAP XI under https://weblogs.sdn.sap.com/pub/wlg/2292. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] When I create the web service with the url from the tutorial: http://host:port/XISOAPAdapter/MessageServlet?channel=:<service>:<channel> the url is not found. If I use the proposed url I got the error: Fehler javax.xml.rpc.soap.SOAPFaultException: System Error.
    What could be the problem?
    Thank you!
    Julia
    Message was edited by: Julia Seifert

    RWB = runtime Workbench
    when you start integration builder you 4 choices (Integration Repository, Integration Directory, System Landscape Directory and Runtime Workbench)
    Go their and on the next Webpage on the first link "Comp. Monitioring"
    Go to "Integration Server" and their to Adapter Engine
    you will get another window below.
    Go their on button Adapter Monitoring and we will get a overview which are working and which not.
    Hope this helps!
    Regards Matt

  • Javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file:

    Hi,
    I am using jboss for deploying the webservice. when i am deploying the webservice i am getting following error.
    20:26:30,696 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss4.0/jboss-4.0.0/server/default/data/wsdl/acWebSe
    rvices.war/AddressWrapper.wsdl
    20:26:30,696 ERROR [ServiceDeployer] Cannot startup webservice for: acWebServices.war
    org.jboss.deployment.DeploymentException: Cannot deploy webservice; - nested throwable: (RuntimeMBeanException: null Cau
    se: javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file: WEB-INF/AddressWrapper-mapping.xml)
    at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:342)
    at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:203)
    at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
    at $Proxy25.handleNotification(Unknown Source)
    at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
    at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
    at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:378)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
    at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20
    4)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
    Here is my mapping.xml file :
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.ca.ac.webservice.wrapper</package-type>
    <namespaceURI>http://com.ca.warpper</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.ca.ac.webservice.wrapper</package-type>
    <namespaceURI>http://com.ca.warpper</namespaceURI>
    </package-mapping>
    <java-xml-type-mapping>
    <java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_RequestStruct</java-type>
    <root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:test</root-type-qname>
    <qname-scope>complexType</qname-scope>
    </java-xml-type-mapping>
    <java-xml-type-mapping>
    <java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_ResponseStruct</java-type>
    <root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:testResponse</root-type-qname>
    <qname-scope>complexType</qname-scope>
    </java-xml-type-mapping>
    <service-interface-mapping>
    <service-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-interface>
    <wsdl-service-name xmlns:serviceNS="http://com.ca.warpper">serviceNS:AddressWrapper</wsdl-service-name>
    <port-mapping>
    <port-name>AddressWrapperIntfPort</port-name>
    <java-port-name>AddressWrapperIntfPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapperIntf</service-endpoint-interface>
    <wsdl-port-type xmlns:portTypeNS="http://com.ca.warpper">portTypeNS:AddressWrapperIntf</wsdl-port-type>
    <wsdl-binding xmlns:bindingNS="http://com.ca.warpper">bindingNS:AddressWrapperIntfBinding</wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>test</java-method-name>
    <wsdl-operation>test</wsdl-operation>
    <wrapped-element/>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    my wsdl :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="AddressWrapper" targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="test">
    <sequence/></complexType>
    <complexType name="testResponse">
    <sequence/></complexType>
    <element name="test" type="tns:test"/>
    <element name="testResponse" type="tns:testResponse"/></schema></types>
    <message name="AddressWrapperIntf_test">
    <part name="parameters" element="tns:test"/></message>
    <message name="AddressWrapperIntf_testResponse">
    <part name="result" element="tns:testResponse"/></message>
    <portType name="AddressWrapperIntf">
    <operation name="test">
    <input message="tns:AddressWrapperIntf_test"/>
    <output message="tns:AddressWrapperIntf_testResponse"/></operation></portType>
    <binding name="AddressWrapperIntfBinding" type="tns:AddressWrapperIntf">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="test">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body use="literal"/></output></operation></binding>
    <service name="AddressWrapper">
    <port name="AddressWrapperIntfPort" binding="tns:AddressWrapperIntfBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
    my webservice.xml
    <webservices
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:impl="http://com.myapp/ws4ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>AddressWrapper</webservice-description-name>
    <wsdl-file>WEB-INF/wsdl/AddressWrapper.wsdl</wsdl-file>
    <jaxrpc-mapping-file>WEB-INF/AddressWrapper-mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>AddressWrapper</port-component-name>
    <wsdl-port>AddressWrapperIntfPort</wsdl-port>
    <service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-endpoint-interface>
    <service-impl-bean>
    <servlet-link>AddressWrapperServlet</servlet-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>

    Problem was name of xml file in webservice.xml is diff from the actually created .xml file
    Problem solved
    Thanks

  • Web Service Model ---javax.xml.rpc.soap.SOAPFaultException

    Hi Experts,
                     I am working with webservices model Using NWDS 7.013. One application (webservice model) was developed in old portal server after that portal server was scrapped. XI server only available now. Currently i have a new server. I import into that application into My NWDS using the New server.
    Refering the below thread
    Re: Problem calling XI WebServices from WebDynpro Java
    I added following code in the component controller before execute the model
    req._setUser("username"); (eg. user_XI)
    req._setPassword("password"); (eg. password_XI)
    while executing the model in the component controller the following exception will be occured
    javax.xml.rpc.soap.SOAPFaultException
    How can i rectify this? anything i am going to create JCO in SLD or any configuration going to create Visual administrator? Please give me your valuable suggestions....
    Regards,
    P.Manivannan.

    Hi,
    Refer to thread Re: Web Service Error. which may be helpful.
    Kind Regards,
    Nitin

  • 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 included in orabpel.jar does not have "loadService"

    I have a class that uses orabpel.jar for Task service and invocation of BPEL.
    Now I made an web service proxy to call an ESB in the same project.
    The web service proxy uses javax.xml.rpc from the orabpel.jar which do not have the loadService method but the file:
    JDeveloper101310_HOME\webservices\lib\jaxrpc-api.jar\javax\xml\rpc
    have the loadService method.
    JDeveloper uses the orabpel.jar although above file is in the library and gives a compile time error of not finding the method "loadService".
    Any ideas ?

    When a web service proxy is created it automatically adds the library file..this is the problem: The project has two same libraries(one from orabpel.jar and other javax.xml,.rpc) and it chooses the one which does not have the loasdServices function i.e orapel.jar...
    is there a way that I can tell the project not to use that library but other one ?

  • Apache XML-RPC & SSL

    I have a client desktop program that should connect to the server via xml-rpc and SSL. I use SecureXmlRpcClient and get the exception while execute method call:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
         at org.apache.xmlrpc.XmlRpc.createTypeFactory(XmlRpc.java:238)
         at org.apache.xmlrpc.XmlRpc.<init>(XmlRpc.java:193)
         at org.apache.xmlrpc.XmlRpcClientResponseProcessor.<init>(XmlRpcClientResponseProcessor.java:48)
         at org.apache.xmlrpc.XmlRpcClientWorker.<init>(XmlRpcClientWorker.java:43)
         at org.apache.xmlrpc.XmlRpcClient.getWorker(XmlRpcClient.java:347)
         at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:190)
         at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
         at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
         at ClientOTK.main(ClientOTK.java:48)
    What does it mean and what should I do ?

    Hi JZ,
    Did you get the answer for your problem? I am using the jars xml-rpc 2.0.1 and common-codec 1.2. I could run the http transaction successfully. But having problem with SSL. I kept getting SocketException :
    java.net.SocketException: Unexpected end of file from server
         at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:818)
         at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
         at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:816)
         at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:635)
         at org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87)
         at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
    I appreciate the comments to resolve this exception.
    thanks jassi

  • 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)

  • XML-RPC Service is not available

    I'm experiencing a problem where CF 8.01 will not start. the log shows the message "The XML-RPC service is not available. This exception is usually caused by service startup failure. Check your server configuration."
    I traced this to a corrupted /lib/neo-xmlrpc.xml file; the structures being generated when I consume a local web service are malformed. If I reinitialize this file to its form as created when CF is installed, CF will start.
    Below is an example of the corrupted structure:
    <wddxPacket version='1.0'><header/><data><array length='3'><struct type='coldfusion.server.ConfigMap'><var name='http:// 123.123.123.2<char code='0d'/><char code='0d'/><char code='0a'/>        /common/verifyUser.cfc?wsdl'><string>http:// 123.123.123.2<char code='0d'/><char code='0d'/><char code='0a'/>        /common/verifyUser.cfc?wsdl</string></var></struct><struct type='coldfusion.server.ConfigMap'><var name='http:// 123.123.123.2<char code='0d'/><char code='0d'/><char code='0a'/>        /common/verifyUser.cfc?wsdl'><string></string></var></struct><struct type='coldfusion.server.ConfigMap'><var name='http:// 123.123.123.2<char code='0d'/><char code='0d'/><char code='0a'/>        /common/verifyUser.cfc?wsdl'><string></string></var></struct></array></data></wddxPacket>
    The corruption is occurring on my developer installation on a windows xp machine. If I execute the same code on my standard server edition running on Windows Server, the structure for the same verifyUser web service looks like this:
    <var name='http://123.123.123.1/common/verifyUser.cfc?wsdl'><string></string></var>
    On both machines I'm running CF version 8,0,1,195765 with updates chf8010003.jar and hf801-1875.jar.
    Has anyone else seen this or have any ideas on how to correct?

    You're right. Here's what was happening:
    My cfinvoke included webservice="http://#APPLICATION.server_ip_address#/common/verifyUser.cfc?wsdl".  I was using the same code to extract the IP address, but different operating systems. So when I populated APPLICATION.server_ip_address without trimming, I was getting extraneous trailing garbage on the XP server version.
    Thanks.

  • Not well defined classpath when using XML-RPC

    Hello,
    im trying to setup a webservice using XML-RPC
    I get real time ClassNotDefined exceptions, and all i can suppose, i haven't set up the classpath correctly.
    I must inform you, that i've allready put the xerces.jar, xmlrpc-1.2-b1.jar (and so on...) at my (JAVA_HOME)\jre\lib and (JAVA_HOME)\jre\lib\ext folders. I use the following statements :
    import java.io.IOException;
    import org.apache.xmlrpc.*;
    import org.apache.xerces.parsers.*; //for the server-side
    import java.io.IOException;
    import java.util.Vector;
    import org.apache.xmlrpc.*;
    import org.apache.xerces.parsers.*; //for the client-side
    I've allready worked with SAXParsers and jdom, but i think that the classes i used there are distributed with the standard jdk-1.4 version i use.
    So, any suggestions? How can i setup my classpath for the XML-RPC programms, if that's the problem?
    Any help would be very very appreciate
    Thank you

    Thanks, I'll have the dev team take a look and put in a fix.

  • XML-RPC via HTTPService

    I'm trying to make an XML-RPC call via an HTTPService
    instance. Is that the best way to do it?
    At present I can generate a request to the correct URL, but
    the POST seems to be empty. I think that I don't understand what
    should go in the <mx:request> tag -- I have the literal XML
    which I want sent:
    <mx:HTTPService
    id="loginRequest"
    url="
    http://localhost:8080/rpc/xmlrpc"
    useProxy="false"
    method="POST"
    contentType="application/xml"
    resultFormat="e4x" >
    <mx:request xmlns="" format="xml">
    <methodCall>
    <methodName>confluence1.login</methodName>
    <params>
    <param>
    <value><string>{username.text}</string></value>
    </param>
    <param>
    <value><string>{password.text}</string></value>
    </param>
    </params>
    </methodCall>
    </mx:request>
    </mx:HTTPService>
    Thanks for any advice.
    Tom

    I am having a similar problem, when I tried to read the
    contents of the POST in ASP it is blank.
    i'm sending some xml to asp from flex using the httpservice
    but when I try to parse the xml using the standard Microsoft.XMLDOM
    it always fails to parse the xml regardless of what xml I send.
    This leads me to think that flex is sending the xml incorrectly.
    flex code>
    request = new HTTPService();
    request.url="
    http://127.0.0.1/test.asp";
    request.contentType="application/xml"
    request.method="POST"
    request.resultFormat="text"
    request.request = XML(<test>testingxml</test>);
    request.addEventListener(ResultEvent.RESULT, success);
    request.addEventListener(FaultEvent.FAULT, fault);
    request.send();
    private function success(e:mx.rpc.events.ResultEvent):void {
    trace(e.result);
    private function fault(e:mx.rpc.events.FaultEvent):void {
    trace(e.message);
    my ASP code>
    Dim mydoc
    Set mydoc=Server.CreateObject("Microsoft.XMLDOM")
    mydoc.async=false
    mydoc.load(Request)
    Response.ContentType = "text/xml"
    if mydoc.parseError.errorcode<>0 then
    Response.write "<prob name='fail'>blah</prob>"
    else
    Response.write "<prob name='works'>yay</prob>"
    end if
    The asp script always sends <prob
    name='fail'>blah</prob> back to flex meaning that the xml
    failed to parse correctly. The xml is correct, if I load the same
    xml from a text file it will parse correctly, it only fails when
    the xml is loaded from flex.
    Does anyone know the exact format that the xml is sent in
    using the httpservice.send() method? I tried using Request.Form in
    ASP but it only gives the error printed at the bottom of this post.
    BTW is there anyway to get flex to trace error messages given
    from ASP when a script fails as I can't read them in a browser
    (because the request is sent using POST). When ASP gives an error
    flex either does not respond or gives this error which does not
    help my cause.
    (mx.messaging.messages::ErrorMessage)#0
    body = (Object)#1
    clientId = "DirectHTTPChannel0"
    correlationId = "39CFBD08-1AEC-89B8-EECA-57F7BC922158"
    destination = ""
    extendedData = (null)
    faultCode = "Server.Error.Request"
    faultDetail = "Error: [IOErrorEvent type="ioError"
    bubbles=false cancelable=false eventPhase=2 text="Error #2032:
    Stream Error. URL:
    http://127.0.0.1/test.asp"
    URL:
    http://127.0.0.1/test.asp"
    faultString = "HTTP request error"
    headers = (Object)#2
    messageId = "3AC23FB2-BFB0-AC27-AE06-57F7BCC14B44"
    rootCause = (flash.events::IOErrorEvent)#3
    bubbles = false
    cancelable = false
    currentTarget = (flash.net::URLLoader)#4
    bytesLoaded = 0
    bytesTotal = 0
    data = (null)
    dataFormat = "text"
    eventPhase = 2
    target = (flash.net::URLLoader)#4
    text = "Error #2032: Stream Error. URL:
    http://127.0.0.1/test.asp"
    type = "ioError"
    timestamp = 0
    timeToLive = 0
    EDIT:
    I wrote the value of the ASP request (sent from flex) to a
    text file and I ended up getting blank, in other words no XML. Now
    i'm not even sure if flex is sending any xml.

  • 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

Maybe you are looking for