Web service ClassCastException in the generated Tie class

I got the above exception when making a request from a client to an EJB webservice. The exception is in the generated tie class on the server side.
I narrowed down the problem to this:
In my function call in the tie class: (now call MyFunction):
a function in the tie class is generated:
private void invoke_MyFunction(StreamingHandlerState streaminghandlerstate) throws Exception{
In this function, there's line:
((MyEJBInterfaceClass)getTarget()).MyFunction(...)
Where MyEJBInterfaceClass is the name of the remote interface, which has MyFunction declaration in it.
the getTarget() function is from TieBase class that the MyEJBInterfaceClass_Tie extended.
The error is generated because getTarget() did not return an instance of MyEJBInterfaceClass.
So, there must be some error in the generated code when I use the deploy tool to deploy my webservice.
Could someone please shed some light?
Sun, please fix your bugs. There are so many bugs that I found when using your server (App Server 8).
From not releasing the context resource properly to not lookup properly using the context, to randomly generate bad client.jar file to this error.
Very disappointed.

Hello again
I tried to reproduce your problem and could not so there must be something different than the following steps :
1. Create the interface MyIntf.java
package ejb;
public interface MyIntf extends java.rmi.Remote {
public String sayHello(String toWho)
throws java.rmi.RemoteException;
2. Create the EJB impl
package ejb;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import java.rmi.RemoteException;
public class MyEjb implements MyIntf, SessionBean {
SessionContext sc = null;
public MyEjb() { }
public void ejbCreate() throws RemoteException {
System.out.println("In MyEjb::ejbCreate !!");
public void setSessionContext(SessionContext sc) {
this.sc = sc;
public void ejbRemove() throws RemoteException {}
public void ejbActivate() {}
public void ejbPassivate() {}
public String sayHello(String toWho) {
return "hello " + toWho;
3. Create the config.xml (slightly modified from yours)
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<service
name="MyEjbIntfService"
targetNamespace="http://java.sun.com"
typeNamespace="http://java.sun.com"
packageName="ejb">
<interface name="ejb.MyIntf"/>
</service>
</configuration>
4. Invoke wscompile
javac -d build ejb/MyEjb.java
wscompile -define -mapping build/mapping.xml -d build -nd build -classpath build config.xml
5. look at wsdl, there is nothing line MyIntfSoapPort like you had
in particular
<portType name="MyIntf">
complete wsdl is :
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="MyEjbIntfService" targetNamespace="http://java.sun.com" xmlns:tns="http://java.sun.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types/>
<message name="MyIntf_sayHello">
<part name="String_1" type="xsd:string"/></message>
<message name="MyIntf_sayHelloResponse">
<part name="result" type="xsd:string"/></message>
<portType name="MyIntf">
<operation name="sayHello" parameterOrder="String_1">
<input message="tns:MyIntf_sayHello"/>
<output message="tns:MyIntf_sayHelloResponse"/></operation></portType>
<binding name="MyIntfBinding" type="tns:MyIntf">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/> <operation name="sayHello">
<soap:operation soapAction=""/>
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://java.sun.com"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://java.sun.com"/></output></operation></binding>
<service name="MyEjbIntfService">
<port name="MyIntfPort" binding="tns:MyIntfBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
6. Package in deploytool.
this is the webservices I got from the assembly tool.
<webservices xmlns="http://java.sun.com/xml/ns/j2ee" version="1.1" 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">
<webservice-description>
<display-name>MyEjbIntfService</display-name>
<webservice-description-name>MyEjbIntfService</webservice-description-name>
<wsdl-file>META-INF/wsdl/MyEjbIntfService.wsdl</wsdl-file>
<jaxrpc-mapping-file>mapping.xml</jaxrpc-mapping-file>
<port-component>
<display-name>MyIntf</display-name>
<port-component-name>MyIntf</port-component-name>
<wsdl-port xmlns:wsdl-port_ns__="http://java.sun.com">wsdl-port_ns__:MyIntfPort</wsdl-port>
<service-endpoint-interface>ejb.MyIntf</service-endpoint-interface>
<service-impl-bean>
<ejb-link>MyEjb</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>
So It works fine AFAIK, from your descriptrion, it seems that the wsdl file is incorrect so the problem starts far before the actual Tie generation. You wrote in a previous message that :
"In the wsdl file this is one of the places it shows: <portType name="MyEjbIntfSoap">"
This is where the problem is. Do you have any clue how you got that ? If you run again wscompile, do you have the same values ?
Jerome

Similar Messages

  • How to change the web service address of NetBeans generated WS client

    I am currently experimenting with web services using netbeans and Sun Application Server.
    Basically I am creating simple web services using net beans and then deploy them on the app server and then create another pfoject with web service reference to that web service to invoke the service.
    My problem is when a project is deliverd to the production site the the client applications web service reference will need to be configured to refer to the production web service address. But when I looked at the generated web service client code the address is hard coded.
    How can I change the address to the web service of a web service reference created in net beans either using some configuration file (without having to recompile the client) or at runtime.
    Thanks in advance

    bump...

  • We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means

    We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means  

    Hello,
    Did you means that you use the Windows Azure Virtual Machine DNS name as the server name in the Reporting Server Web Services URL?
    For example:
    Report server:http://uebi.cloudapp.net/reportserver
    Report manager:http://uebi.cloudapp.net/reports
    If you want to connect to Report Manager on the virtual machine from a remote computer, you should create a  virtual machine TCP Endpoint and open the port in the virtual machine’s firewall. By default, the report server listens for HTTP requests
    on port 80.
    Reference:http://msdn.microsoft.com/en-us/library/jj992719.aspx#bkmk_ssrs_connect_2_remote_RM
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Help: Creating web service proxy using JAXB generated domains

    Hi,
    I'm currently doing some investigation considering the use of web services (BPEL) as a complete application backend.
    The application should contain a pojo facade which communicates with some web service proxies. By making a datacontrol
    of the pojo facade, I'm able to expose methods to the client layer.
    I generated my domain objects by using the JAXB Compilation option in JDeveloper. By using that, a java class can be generated
    based on an XSD. Disadvantage of this use, seems to be the fact that the ObjectFactory class, generated by JAXB, is overwritten
    each time I create java classes from an XSD.
    Q1: Is there a solution to prevent the ObjectFactory class to be overwritten? I also could decide not to use it.
    After the domain objects are created, I want to call the actual webservice and receive the response by using the JAXB marshaller
    and unmarshaller. Problem here is:
    Q2: How do I (manually?) create a proxy which calls the web service, by using the domain objects generated by JAXB?
    Q3: An important requirement is that it needs to be simple to switch from several environments (eg from development to test). How
    can I fulfill this requirement in a nice, solid solution?
    Any tips working with web services as the backend layer are welcome!
    JDeveloper 10.1.3.4
    ADF Faces/JSF
    BPEL
    Thanks,
    Koen Verhulst

    repost.

  • Web Services, Schemas, and the xsi:type attribute

    Hi List,
    I have several questions reqarding web services, schemas, and the use of the xsi:type
    attribute in messages.
    Schemas:
    Q1: How complex can a web service schema be?
    Q2: Is it reasonable for a schema to contain derived types by extension [1]?
    Q3: Could you use the International Purchase Order Schema [2] with a web service?
    xsi:type
    Q1: Is it reasonable for a web service to use the xsi:type attribute in the message(s)?
    If I am interpreting Section 4.1.15 of the BasicProfile-1.0a [3] correctly, this
    appears to be appropriate in certain circumstances.
    Q2: When is it appropriate to use the xsi:type attribute? If a schema contains
    derived types by extension [1]? If a schema contains xsd:anyType?
    Q3: How does using the xsi:type attribute affect interoperability?
    And finally,
    Q4: Are there any examples available demonstrating the use of the xsi:type attribute
    in messages?
    Whew !!!
    TIA,
    Kent
    [1] http://www.w3.org/TR/xmlschema-0/#DerivExt
    [2] http://www.w3.org/TR/xmlschema-0/#ipo.xsd
    [3] http://www.ws-i.org/Profiles/Basic/2003-08/BasicProfile-1.0a.html

    Hi Kent,
    A few answers inline...
    HTH,
    Bruce
    Kent Kvarfordt wrote:
    >
    Hi List,
    I have several questions reqarding web services, schemas, and the use of the xsi:type
    attribute in messages.
    Schemas:
    Q1: How complex can a web service schema be?There are limits in converting the schema between language
    representations, see this section [a] in the docs on roundtripping
    generated data types.
    [a]
    http://edocs.bea.com/wls/docs81/webserv/assemble.html#1074725
    Q2: Is it reasonable for a schema to contain derived types by extension [1]?
    Q3: Could you use the International Purchase Order Schema [2] with a web service?
    xsi:type
    Q1: Is it reasonable for a web service to use the xsi:type attribute in the message(s)?
    If I am interpreting Section 4.1.15 of the BasicProfile-1.0a [3] correctly, this
    appears to be appropriate in certain circumstances.I've not seen this used.
    http://www.ws-i.org/Profiles/Basic/2003-08/BasicProfile-1.0a.html#refinement34259632
    >
    Q2: When is it appropriate to use the xsi:type attribute? If a schema contains
    derived types by extension [1]? If a schema contains xsd:anyType?
    Q3: How does using the xsi:type attribute affect interoperability?My thought is that since this is not commonly used, then your risk of
    interop failure is high.
    >
    And finally,
    Q4: Are there any examples available demonstrating the use of the xsi:type attribute
    in messages?Sorry, I looked and could not find any examples.
    >
    Whew !!!
    TIA,
    Kent
    [1] http://www.w3.org/TR/xmlschema-0/#DerivExt
    [2] http://www.w3.org/TR/xmlschema-0/#ipo.xsd
    [3] http://www.ws-i.org/Profiles/Basic/2003-08/BasicProfile-1.0a.html

  • Web Services - What is the right strategy to follow?

    Hi,
    I want to consume web services directly into the database, the application is all to be within the database no website or clients. Based on the calls to the external provider I then want to be able to send request back. I want to use pl/sql inside the database as opposed to java.
    I have the wsdl file and jdeveloper has generated quite a lot of java objects based ont this. This is about as far as I have got. I read somewhere about loading java web services client directly into the database.
    Any guidance would be appreciated.
    Thanks David

    Hi Sunil,
    Thanks for the link, I also found what I think is a pretty up to date solution at:
    http://www.oracle.com/technology/pub/articles/mensah_dws.html
    I am sure this is possible all in jdeveloper but to many wizards, frameworks and options that you could want!
    Regards
    David

  • (261680070) Q SYNCH-11 How do my web service methods accees EJBs and java classes?

    A<SYNCH-11> How do my web service methods accees EJBs and java classes?
    A<SYNCH-11> It is simple to use java classes, just do it as you would ordinarily.
    The .jws file really contains a simple class so you can program with it in the same
    way that you would use a regular Java class.
    To use an EJB you can go and access it directly as you would with any EJB remote
    client (lookup home stub, create, etc) or if the EJB is deployed to WLS you can use
    a control to provide a very simple wrapper to the EJB. We will see this in detail
    on Thursday in the ADVC module.

    Futher information about the possibility of callback:
    It may be possible for a synchronous only web service (i.e. MS .net) to even paticipant
    in the callback functionality of asynchronous web services. If the client implements
    the appropriate methods for the callback but listens for them on a different port
    or binding than the SOAP request, then web service may be able to build a response
    if the client's "callback URL" is submitted as the beginning part of a conversation.
    Watch the BEA developer forum (http://dev2dev.bea.com) for more information about
    this approach and other tips and techniques for building web services.
    "Adam FitzGerald" <[email protected]> wrote:
    >
    Q<SYNCH-03> I heard that MS .net only implements synchrnonus method? If
    this is true.
    Does it means my async methods will only work with J2EE clients?
    A<SYNCH-03> I do not know the limitations of .net but let me point out that
    is very
    difficult to provide asynchronous web service method invocation (this is
    different
    from an asynchronous web service). HTTP as a general communication protocol
    is based
    on a request and response paradigm so your client libraries will mostly
    likely be
    expecting a response even if it is empty (check the asynchronous example
    from today
    to see that the start method still returns an empty response). You must
    distinguish
    this from the notion of an asynchronous web service which is a business
    operation
    that occurs on the server whose return value/result is not directly associated
    with
    building response to the client. An asynchronous web service can (and generally
    will)
    be started and stopped with web service operations that are invoked synchronously.
    Thus MS .net clients can still be client to WLS hosted web services.

  • Web services entry in the JDeveloper "New Gallery" Wizard not showing all

    Hi all,
    I just started development to call a web service using jdev 10.1.3.1.3984 ADF BC from the backing bean of a jsf page. Following the "How-to access username and password protected Java EE Web services from ADF" by Frank Nimphius, I started to create the Web service data control project from the Web services entry in the JDev "New Gallery" wizard. From the >Business Tier>Web Services>, the only "Available Items" is UDDI Registry Connection. When I select "All Items", all the other items show as unavailable.
    How do I make available all the other items?
    Thanks in advance,
    Paul.

    Yes, I did. I created a new application as "ADFWithWebServices" and then tried to create the "WebServicesDataControlModel" and the wizard showed the items as unavailable.

  • Reporting Server Web Service- (FileShare) CreateSubscription: The value of parameter 'ExtensionSettings' is not valid

    I've tried to create a subscription by Web Service api calling the method CreateSubscription and I've an error: 
    > The value of parameter 'ExtensionSettings' is not valid. --->
    > Microsoft.ReportingServices.Diagnostics.Utilities.InvalidParameterException:
    > The value of parameter 'ExtensionSettings' is not valid.
     Below is my code:
    ReportingService2010 m_RptManager = new ReportingService2010();     m_RptManager.Url = "<path>/ReportService2010.asmx";     m_RptManager.Credentials = GetCredential();     string filename = Path.GetFileName(m_FileName);     string path = Path.GetDirectoryName(m_FileName);     ParameterValue[] extensionParams = new ParameterValue[7];     for (int i = 0; i < extensionParams.Length; i++)              extensionParams[i] = new ParameterValue();     extensionParams[0].Name = "FILENAME";     extensionParams[0].Value = filename;     extensionParams[1].Name = "FILEEXTN";     extensionParams[1].Value = "False";     extensionParams[2].Name = "PATH";     extensionParams[2].Value = path;     extensionParams[3].Name = "RENDER_FORMAT";     extensionParams[3].Value = m_Format;     extensionParams[4].Name = "WRITEMODE";     extensionParams[4].Value = "Overwrite";     extensionParams[5].Name = "USERNAME";     extensionParams[5].Value = m_UserName;     extensionParams[6].Name = "PASSWORD";     extensionParams[6].Value = m_Password;     ExtensionSettings extensionSettings = new ExtensionSettings();     extensionSettings.Extension = "Report Server FileShare";     extensionSettings.ParameterValues = extensionParams;     MinuteRecurrence pattern = new MinuteRecurrence();     pattern.MinutesInterval = 1;     ScheduleDefinition schedule = new ScheduleDefinition();     schedule.StartDateTime = DateTime.Now;     schedule.EndDateSpecified = false;     schedule.Item = pattern;     XmlSerializer serializer = new XmlSerializer(typeof(ScheduleDefinition));     string dateMatch;     using (StringWriter sw = new StringWriter())            {                serializer.Serialize(sw, schedule);                dateMatch = sw.ToString();            }     string reportPath = "MyReport";     string eventType = "TimedSubscription";     string description = "description";     m_RptManager.CreateSubscription(reportPath, extensionSettings, description, eventType, matchData, GetReportParameters(reportPath));
    Where have I wrong? 

    Thank for reply, I checked my parameter and I seem that (maybe) is  ok below is my parameters, do you see anything of wrong?
    <?xml version="1.0" encoding="utf-16"?>
    <ExtensionSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Extension xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer">Report Server FileShare</Extension>
    <ParameterValues xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer">
    <ParameterValue>
    <Name xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">FILENAME</Name>
    <Value xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">pippo.xls</Value>
    </ParameterValue>
    <ParameterValue>
    <Name xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">FILEEXTN</Name>
    <Value xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">False</Value>
    </ParameterValue>
    <ParameterValue>
    <Name xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">PATH</Name>
    <Value xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">\\10.4.44.253\D$\Data Applications\DBP\Output\DOMAIN\User\14</Value>
    </ParameterValue>
    <ParameterValue>
    <Name xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">RENDER_FORMAT</Name>
    <Value xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">EXCEL</Value>
    </ParameterValue>
    <ParameterValue>
    <Name xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">WRITEMODE</Name>
    <Value xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">Overwrite</Value>
    </ParameterValue>
    <ParameterValue>
    <Name xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">USERNAME</Name>
    <Value xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">domain\user</Value>
    </ParameterValue>
    <ParameterValue>
    <Name xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">PASSWORD</Name>
    <Value xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">xxxxxx</Value>
    </ParameterValue>
    </ParameterValues>
    </ExtensionSettings>
     

  • Create a fragment with web service to populate the drop down list

    Hello,
    Can any one please advise/suggest on how to create a fragment in LiveCycle Designer ES with web service to populate the drop down list so I can re-use it for another form. I already have a drop down list to populate the data from the web serivice but need some advise on how to create a fragment for this drop down list so I can start to embed it in other forms as well.
    Thanks in advance,
    HD

    Did you follow the instructions and have a specific question?  Have you also looked at the documentation http://help.adobe.com/en_US/livecycle/9.0/lcdesigner_qs_fragments.pdf

  • Problems doing the "Web Service" example from the 2-Day-Developer Guide

    Hello,
    I want to do the "web service" example from the 2-Day-Developer Guide.
    I give the application my proxy server address in the format address:port and go through the assistant creating the web service. After selecting the IBM UDDI-service and searching for %xMethods% as business name I get the following error:
    ORA-31011: XML-Parsing not successful ORA-19202: Error parsing XML LPX-00104: Warning: Element "html" is not declared in DTD Error at line 2
    What have I done wrong?
    With kind regards
    Florian Reiser

    Please.. Could you change your forum handle to something more human, we are a friendly group here and lik to know who we are talking to.. Secondly, WHy are you using such an OLD version oft he product. You would be better off installing 3.2.1 (latest released build) and asking your questions after you do that..
    (I am sorry, it's like asking for help in a Windows support forum about issues you are having with Windows 3.1)
    Thank you,
    Tony Miller
    Webster, TX

  • Are there any shortcuts to connecting the printer with web services and/or the eprint server?

    (HP Officejet Pro 8600 Plus, IE, Windows 7)
     As I am unable to execute the instructions given by
    by Ryamond 1411, I'm looking for  other avenues to connect my printer to web services and/or
    the eprint server so I can release 4 emails for printout now stuck in que.

    Hello MurrayJ,
    The first thing I would do is follow step six in this document to set a static IP: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02817031&cc=us&dlc=en&lc=en&product=4023246&tmp...
    When it askes for DNS information, enter in Google's DNS. Preferred DNS = 8.8.8.8 Alt DNS = 8.8.4.4
    If that does not help, if you could provide me with the following information it would help me out. First, who is your ISP( Internet Service Provider, i.e. Comcast, AT&T, Verizon, ect.)? Second, who is the maker of your router? Lastly, what is the model number and firmware version of your router?
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Any commercial web services available in the market which buy/subscribe?

    Hi Folks,
    I would like to know best commercial web services available in the market which buy/subscribe/opensource which will give us the currency exchange rates for common currencies of the world ? Example : USD to INR or USD to GBP.pls list them.
    Thanks,
    developer

    I have found few commercial/free web services for currency exchange:
    Commercial Web services:
    •     DOTS Web Services (http://www.serviceobjects.com/products/commerce/currency-exchange)
    •     Xignite Web Services (http://www.xignite.com/xCurrencies.asmx)
    •     StrikeIron Web Services (http://www.strikeiron.com/ProductDetail.aspx?p=481)
    Free Web Services:
    •     Web Servicex (http://www.webservicex.net/WCF/ServiceDetails.aspx?SID=18)
    Thanks,
    Rajeshwar.

  • Generating Web Services bases on the WSDL interface

    Hello everybody.
    my question is.
    How can i generated all the java classes of a web services basen on a wsdl definition.
    how can i generate a simple java classe or how can i generate a ejb session, thet serve as a end point for my services
    any sugestion could be so helpfull

    The tool used to generate java class from WSDL is vender dependent, because each JAX-RPC engine is implemented differently (even they have to implement all JAX-RPC API, but low level stub call is engine dependent).
    So to generate you class from WSDL, you have to have tool first. Since all J2EE 1.4 app servers are required to have implementation of JAX-RPC API and its run time engine (but many J2EE 1.3 app servers also included JAX-RPC API and engine) , what you want to do could be to find any J2EE 1.4 app server, such as WAS or WSAD, or Sun's Application Server PE 8.1, read their examples carefull and you will find the way how to generate classes from WSDL.

  • HELP: Error while consuming Web Service: ClassCastException

    Hi,
    I am trying to consume a web service that I deployed on Tomcat/Axis. Any guideline will be helpful. I generated stubs using WSDL2Java utility from Axis. The method I am trying to call is getFibo(), which returns an object FiboHolder. Unfortunately everytime it is throwing ClassCastException. I have couple of other methods in the service that returns int and int[] and both works fine. Could anyone please help why I am not able to consume the service when it is returning the object FiboHolder but works fine when I consume other methods of the service that returns int or int[]?
    Following is my client code:
        FibonacciService service =  new FibonacciServiceLocator();
        FibonacciSoapBindingStub stub = (FibonacciSoapBindingStub) service.getfibonacci(new URL("http://localhost:8080/axis/services/fibonacci"));
        // Now use the service to get a stub to the service
        FiboHolder fibHold = stub.getFibo();  //code errors out at runtime here
        System.out.println(fibHold.getFibo1());Following is the error message I get:
    org.apache.axis.AxisFault: java.lang.ClassCastException
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.ClassCastException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:
    Thanks,

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

Maybe you are looking for

  • Problem in the contract - price of service master is notcpying to condition

    Dear Experts, I am facing a problem with the contract. I have created a contract for services. I have entered all the details like, validity period Service master numbers, Qty and price for each service master. When I am using this contract in the ma

  • Problem in using a text area

    Hi All, I am having text area in my screen. I am using  CALL METHOD editor1->get_text_as_r3table            IMPORTING                table = it_text            EXCEPTIONS                OTHERS = 1. to get the text entered in the text area. The proble

  • Hints on this model: Deciding on Cube/ODS & types of dimensions

    Hi, We have 4 ODSes which are fed data from 4 different flat files: ODS1—loaded daily-key data-field1, field2, field3, field4 ODS2—loaded twice per week-key data-field1, field2, field3, field4 ODS3—loaded daily-key data-field1, field2, field3, field4

  • Bondi Rev B monitor flicker

    Hey Ron, Strider, dreed2, schadow---long time. I'm shep from the previous forum days. I turned on my old Bondi Rev B this morning, went about had coffee, shower, etc. Went back to it and I thought well maybe I didn't turn it on. So hit thhe power but

  • Image Skips when Returning from Camera Raw to Bridge

    Hi Folks When I finished editing my image in Camera Raw and returned to Bridge I could immediately view my edits in the Bridge preview window. As it took about a second to update I could see the unedited image and then the updated edited image. Happy