Web service as another web service client - problem in JavaEE SE?

Hello,
I observed strange behaviour with OpenESB, Glassfish (build 33) and following scenario:
I need to call web service from another web service. When I use simple schema:
web service client -> web service (as EJB) -> another Web service
everything works. But I would like to use JBI/ESB, so:
web service client -> HTTP SOAP BC -> JAVAEE SE -> web service (as EJB) -> another Web service
the following exception prevents success:
com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class cz.muni.fi.yucca.client.jbiws.gamanager.Calculate is not fou
nd. Have you run APT to generate them?
at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:254)
at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:550)
at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:497)
at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:339)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:225)
at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:584)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:287)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:270)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:263)
at javax.xml.ws.Service.getPort(Service.java:92)
at cz.muni.fi.yucca.client.jbiws.gamanager.GAManagerService.getGAManagerPort(GAManagerService.java:51)
When I call both services separately they work correctly, when I don't use JBI it works correctly too.
Should anybody help me solving this problem?
Thanks in advice, Vlado

Fine,
I've found out that this problem is caused by different classloaders assigned to directly (EJBClassloader) and through-JBI (improperly configured URLClassloader) called web services.
I've moved my question to GlassFish forum (http://forums.java.net/jive/thread.jspa?threadID=24901&tstart=0) beacause of it's "technical" nature.
Despite this, any help is welcome:-)

Similar Messages

  • Calling a Web Service in another Web Service using JDev10.1.3 and AS 10g

    I am using JDeveloper 10.1.3.0.4.3673 and Oracle AS 10g 10.1.3 on Windows XP Professional Version 2002 service pack 2.
    Has anyone called a web service in another web service? I have not researched this yet. I assume it is possible. I need to get this figured out asap.
    My guess is that
    1. For the web service which is going to be called in the other web service, you need to create client-side proxy to call the web service - create a static method to instantiate and call the service.
    2. I would deploy this client-side proxy Stub which calls the web service along with the other web service which calls it to the Oracle AS 10g.
    Is this right? Is there any documentation on this specific thing?

    Hi,
    rhis kind of orchestration is what BPEL is made for.
    http://www.oracle.com/technology/products/ias/bpel/index.html
    Frank

  • Invoking one web service from another web service

    Hi there,
    I want to invoke a web service lets say X. But befor sending parameters to this web service, what i want to do is first pass the parameters to a web service called Y and Y will decide wether to call X or not. In other words i want to invoke a web service from another web service.
    Its kind of urget so do the needful asap.
    Thanks

    Calling another webservice from within a webservice does not require anything special. The service (say svc1) that calls another service (svc2) will be a web svc client. So you will have to do the same steps for svc1 as you would do for any other web service client

  • Pass data from one web application to another web application

    Hi,
    Please provide suggestion for following scenario:
    Scenario: Basically the aim is to transfer large amount of data from one application to another and display JSP of second application.
    User enteres data on a JSP of one web application. When he submits that data, another web application opens in new window and data from first application should be passed to this second web application. Another web application will display that data on its own JSP. User can perform whatever he wants on second application screen.
    Possible solutions:
    1) response.sendRedirect(): This makes GET request. But, there is large data to send. So, GET is not effective.
    2) forward(request, response): Can't use as I have to pass data to different application that is in another context.
    3) URLConnection: Here, I can make POST request and set attributes in HTTP request and make connection to another application. I can pass data using output stream. But, I can't display second application JSP to user even if I use input stream to read response. Because control will be ultimately in first application only.
    Is there any othe method to achieve this or any of the above options extendable?
    Please give your inputs.

    Hi,
    According to your post, my understanding is that you want to migrate list data from one web application to another.
    We can migrate list data programmatically, there are some articles for your reference.
    http://blogs.msdn.com/b/tejasr/archive/2007/11/12/code-snippet-copy-list-data-between-sites-programmatically.aspx
    http://www.fivenumber.com/copy-sharepoint-list-items-from-one-site-to-another-programmatically/
    http://geekswithblogs.net/AnneBougie/archive/2009/01/23/copy-a-sharepoint-list.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Error invoking a web service within another web service

    Hi all!
    I have to develop a web service which needs to invoke another web service, thus the first web service is acting as a client of the second one. To get this, the first web service uses the proxy provided by the home page of the second one. However, when the first service invokes the second service, the body within the soap message is modified in such a way that it is not valid for the second service, because some namespaces declarations are added, in spite of the fact that they already exist. Then, I find the following:
    Body of the SOAP request created by the first web service:
    <a:request attribute1="urn:attribute:one"
    xmlns:a="urn:namespace:one" xmlns:b="urn:namespace:two">
    <b:body>Hello</b:body>
    </a:request>
    Body of the SOAP request received by the second web service:
    <a:request xmlns:a="urn:namespace:one"
    attribute1="urn:attribute:one"
    xmlns:a="urn:namespace:one" xmlns:b="urn:namespace:two">
    <b:body xmlns:b="urn:namespace:two">Hello</b:body>
    </a:request>
    I have also tried to run a client using this proxy outside the web service, and everything is ok. So, from my point of view, the problem is when running the proxy inside a web service. I wonder if I have to do something special with this proxy in order to use it within a web service.
    Has anybody run into this situation?
    Could anybody be so kind as to tell me how to solve it or if, on the contrary, it is an oc4j bug, please?
    Thank you very much in advance.
    Inma.

    Hi,
    Thanx it is working now.
    BTW can you give me some urls with info of this kind of setting which i need to do for other kind of integarions in J2EE platform.Sorry if i am asking too much as i am a starter in this technology.

  • Calling operation of the exposed BO Service in another Application Service

    Hi,
    I am working on Composite Application development in CE7.1.
    I have the following scenario:
    A business object is exposed as a web service.
    The web service of the business object is imported as an external service in another CA Application.
    On the composite application explorer,
    under the "composite application --> external --> External Services" node I can see both the operations provided from the exposed business object.
    My Question: If I define an operation on the application service as implemented, how can I call the operations of the exposed business objects?
    Thanks,
    Yasar

    Hi Yasar,
    Fallow the fallowing steps.
    1)  First expose your BO(Exp_BO) as a web service.
    2) Import that web service( (Exp_BO) as an external service in what ever project you want.
    3) create an application service(eg AppService)
    4) right click the imported external service and choose default mapping. select "create methodes in existing application service" and choose AppServioce.It will create the methodes with same name and map them to the Exposed BO methodes.
    5)Next in the implemted method call the web service(ExpBO) methodes.
    I am giving an example:
    LocalInventorBO is the local BO.
    Inventor is the Exposed BO.It is having a method create(inventorId).This create method dosn't return actual Inventor.But it will create InventorType.We have to use that type.
    public com.hcl.ramp.types.LocalInventorBO CustomImplementedOperation(java.lang.String inventorId) throws com.sap.caf.rt.exception.CAFServiceException {
              com.sap.caf.demo_sap_com.xipvault_practice1.modeled.InventorType inventorType=this.create(inventorId);
              com.hcl.ramp.types.LocalInventorBO localInventorBO=     this.getLocalInventorBOService().create();
              localInventorBO.setInventorId(inventorType.getInventorId());
              return localInventorBO;

  • Link customer submitted web app to another web app

    Hi,
    Just wondering if there is a way to insert data from one web app into another.
    I have 2 web apps - one for business info (submitted and updated by the business), the other for recipes (submitted by the business).  They are both linked to the same user.
    What I would like is on the page that displays the recipe submitted by a business for there to be a link that says Submitted by Business Name 1 and for Business Name 1 to link to their Business info page. And also on their business info page to have a link saying Recipe name 1 and for Recipe name 1 to link to their recipe page.
    There will be hundreds of businesses so if this can be built into the web app and be automated that would be great without having to manually add the links to their business listing or recipe pages.
    Cheers

    The only way I have managed this is to Extend the CRM and have duplicate fields and links. The CRM can be called when a web app is created. If that CRM has a business name and a link to the existing web app business, then they can be saved into the new web app. The tricky part is to encourage users to update their CRM with the appropriate fields.
    Clumsy, but it works. I use it for connecting 'articles' and 'business listings' using the Authors name here: http://www.umbrellamag.com.au/view-umbrella-articles

  • Calling a Web Service from another Web Service

    Hello,
    I have the following scenario: Web Service -> XI -> RFC.
    I have created the XI -> RFC configurations in the XI and exposed them as a Web Service. I tested the generated WSDL with WebDynpro for Java and it works well (I also uploaded the WSDL to the XI server and tested it from the wsnavigator).
    I have created a Web Service from a Java class, deployed it on the XI server (the same XI server as the one with the RFC scenario), tested it and it works well.
    Now I want to call the service I exposed from the XI from inside my Web Service.
    How can I do that? Are there any code samples for that? I searched and couldn't find any.

    create a standalone proxy for your WSDL of the web service deployed on XI java stack and use its API library in the caller Web service...
    find the details here...
    http://help.sap.com/saphelp_nw04/helpdata/en/77/1484b9ecb98c41af4a01131d8d46d3/content.htm

  • Error calling web service from another web service

    I get the following deployment error:
    BUILD FAILED
    /home/appgcelc/DS_028/Receive/XMLReceiveService/build.xml:170: Deploy error: Ope
    ration failed with error:
    Error compiling :/u10/app/gcelc/ora/appserver10131/j2ee/home/applications/XMLRe
    ceiveService/ReceiveMessage: Error instantiating compiler: Webservice artifact g
    eneration failed:java.lang.IllegalStateException: Service {http://ds.gcss.usmc.m
    il/}compsvc for service-ref service/CompressService not found
    Below is my web.xml fine...the service ref looks good! What's the issue???
    <web-app 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://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
    version="2.5">
    <servlet>
    <description>Web Service DefaultDepPort</description>
    <display-name>Web Service DefaultDepPort</display-name>
    <servlet-name>DefaultDepPort</servlet-name>
    <servlet-class>mil.usmc.gcss.DefaultDepImpl</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>DefaultDepPort</servlet-name>
    <url-pattern>DefaultDepPort</url-pattern>
    </servlet-mapping>
    <ejb-local-ref>
    <ejb-ref-name>ejb/local/SessionFacade</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local>mil.usmc.gcss.SessionFacadeLocal</local>
    </ejb-local-ref>
    <service-ref>
    <service-ref-name>service/CompressService</service-ref-name>
    <service-interface>javax.xml.rpc.Service</service-interface>
    <wsdl-file>WEB-INF/wsdl/compsvc.wsdl</wsdl-file>
    <jaxrpc-mapping-file>WEB-INF/compsvc-java-wsdl-mapping.xml</jaxrpc-mapping-file>
    <service-qname xmlns:service-qname_ns__="http://ds.gcss.usmc.mil/">service-qname_ns__:compsvc
    </service-qname>
    <port-component-ref>
    <service-endpoint-interface>mil.usmc.gcss.CompressService</service-endpoint-interface>
    </port-component-ref>
    </service-ref>
    <resource-env-ref>
    <description>Data Source for error handling API</description>
    <resource-env-ref-name>jdbc/xxmcDS</resource-env-ref-name>
    <resource-env-ref-type>javax.sql.DataSource</resource-env-ref-type>
    </resource-env-ref>
    </web-app>

    Well questions related to Web Services have been answered here in past, please Search on SCN for links to it.

  • Calling one WTC service from another WTC service

    Hi,
    We have a service called COLLECT defined in our WTC server.
    Recently we've added a second service called SUM in the same WTC server.
    We were wondering if it's possible to call SUM from COLLECT, and if it is, what configuration changes should be made in order to do it?
    Currently both services are exported by the WTC server (and imported by our Tuxedo).
    Thanks,
    Shy

    Hi Shy,
    Although I haven't tried it, I'm fairly certain you cannot call a Tuxedo EJB using tpcall() within a WTC based application. What I normally advise customers to do when writing a Tuxedo EJB is to implement two separate interfaces. One is obviously the TuxedoService interface that all Tuxedo EJBs must implement. In particular you must implement the service() method that accepts a TPServiceInformation instance that provides access to the typed buffer passed to the EJB. Normally one then extracts the necessary fields or information from the typed buffer, performs whatever necessary business logic needs to be performed, and then constructs a reply typed buffer.
    What I recommend is that you separate out the business logic into a separate interface and have your class implement both interfaces. The service() method would only deal with the marshalling/unmarshalling of the information contained in the typed buffers, and leave all business processing to methods on the second interface. Then if you need to access another "service", you would use the second interface, thus saving you from all the typed buffer manipulation.
    So in your case, the business logic in the second interface of the COLLECT implementation would simply call the SUM implementations second interface (the EJB's business logic) instead of trying to call a Tuxedo service. While this helps in reuse of the business logic, it doesn't address the issue of trying to transparently move a service implementation from say Tuxedo to WLS. If that's what you are trying to do, you might try exporting the SUM service from WTC to the Tuxedo domain gateway, and then importing the SUM service from that gateway. This would likely cause a network round trip if it works, but it's something to consider.
    Another alternative is to use something like the Apache Tuscany/Java project and build your Java applications using SCA. Tuxedo SALT includes a Tuscany/Java binding extension that allows Tuscany/Java applications to transparently call Tuxedo services. The choice of whether to actually call a Tuxedo service or call a Tuscany/Java based SCA service is determine by the binding selection and not changes in your code. Just a thought...
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Calling web applications from another web application

    Hi everyone,
    I direly need your suggestions on how to implement the following requirements:
    I have a web application (i.e. App A). Then I have other web applications (i.e. App B, App C, App D, etc.) .
    For each of the other apps (App B, App C, App D), I need to have 2 variable/attribute settings whose values are to be set (pre-defined) per user.
    Meaning one user's values are different from another user.
    In App A, I need to call App B, App C, & App D one by one to get the values of the 2 variables/attributes for a particular user accessing App A.
    How should I implement this whole scenario such that I can set the values for 2 variables/attributes in App B, C, & D on a per user basis?
    Please help me get ideas on what methods or work-arounds to implement in order to achieve this.
    Thanks.
    blm

    Assuming this is running on a server, how about placing your data in application scope?
    All applications have access to it. Just make sure every object put in application scope is uniquely named
    and that your other application knows its name. One suggestion is to put a collection object (such as a List) in application scope and add items to it. This way, every application will know the collector's name. They can then search through the collection for any object addressed to itself. Just make sure you send data into and out of the collection in a thread safe way. such as by synchronization.
    Here is an example of an object that you can store in the collection:
    MessageObject{
    String fromApplication;
    String toApplication;
    String message;
    }

  • Can a web.xml include another web.xml ?

    The application i am working at has alot of servlets and i was wondering if i can put some order in my web-app by separating my web.xml in different smaller web.xml's ?

    I can sympathize with you as far as the readability goes.
    I know that Tomcat 4 provides a GUI that's intended to make editing server and container level XML files a lot easier, but I'm not certain if it handles application level XMLs too. I think it's safe to say that version 5 will probably either support modifying web.xml files through the GUI or someone will make that feature available through an add-on module.
    In the meantime, the length of the XML doesn't affect Tomcat. I would just put up with it until the tool comes along.

  • Web Part inside a Web Part

    Hello.
    I am currently redesigning a SharePoint. The new proposal is 95%
    complete, I am having one issue which I am struggling to resolve.
    I need to have a web part within another web part (a web part showing the news and announcements list
    inside the whole page web part) inside a table cell. 
    To resolve this I created an iFrame and placed a web part inside.
    This solved this issue however whenever
    the links were clicked in this web part they opened up in the small iFrame window and not the parent window (the one showing the whole page).
    I am trying to find a way to open the links in the iFrame in the parent window, new tab or in
    a new
    browser. Just like when you right click a link and select Open in New Tab but automatic. Also because there is no option to change the hyperlinks in the announcement list, I am unable to use the well known target & _blank functions etc.
     If
    you need anymore details I will be happy to provide you with these.
    Thank you.

    SharePoint architectural considerations aside, you can use the target
    attribute of your href links to escape an iframe. For instance:
    <a href="#" target="_top">Link</a> - will use the full browser window, escaping any iframes
    <a href="#" target="_blank">Link</a> - will open in a new tab/window, depending on user browser settings
    For more information about the target attribute, read
    this tutorial.
    Danny Jessee<br/> MCPD - SharePoint Developer 2010<br/> MCTS - SharePoint 2010, Configuring<br/> dannyjessee.com/blog

  • Add Web content into ISE Web Server?

    Hello,
    We use Cisco ISE 1.2.0.899 on our network.
    We would like to add a Web based documentation about Guest Portal ("how to find MAC Address", "how to release/renew IP Address"...) on our network to help users.
    Idealy we would like to host these data on the Web server integrated to ISE (which already hosts Guest/Sponsor Portals).
    Does ISE allow that?
    Unregistered users (or not already profiled devices) are automatically redirected to the Guest Portal, but we would like they're able to access to this documentation (hosted on ISE Web Server or another Web Server).
    How can we set that? By not using port 80 to access to this documentation?
    Which elements does ISE identify to redirect browsers to the Guest Portal? Is it port 80, http protocol or other?
    Regards,
    Chris

    Thanks Marvin.
    I've checked this guide, I may have misunderstood, but I've seen how to customize built-in content only, and not how to add our own content.
    We've created our own documentation (html files), and we would like that our users can access to it when they are using the Guest Portal.
    We thought add the documentation URL on the "Guest Portal Login", to open it in a pop-up or new window.
    Can we host these documentation files on ISE Web Server (apache)?
    Or do we have to host them on a separate server?
    Because unregistered users/devices are automatically redirected to the Guest Portal, we would like to know how to allow users to access to this online documentation without the documentation pages are also redirected to the Guest Portal?
    Thanks for your help,
    Chris

  • Problems invoking a secure 8.1 web service from a 6.1 client

    I'm trying to invoke a secure 8.1 web service from a 6.1 client application and keep getting rejected with the following message:
    Security Violation: User: '<anonymous>' has insufficient permission to access EJB:
    In the 6.1 client, I've established a WebServiceProxy and set the userName and password to the proper values, but I can't seem to get past the security.
    If there something special I need to do on either the 8.1 securing side or on the 6.1 accessing side to make this work?
    Any help would be GREATLY appreciated.

    Hi Paul,
    This sound familiar, but I cannot at the moment locate a reference to
    the issue. I would encourage you to seek the help of our super support
    team [1].
    Regards,
    Bruce
    [1]
    http://support.bea.com
    [email protected]
    Paul Merrigan wrote:
    >
    I'm trying to invoke a secure 8.1 web service from a 6.1 client application and keep getting rejected with the following message:
    Security Violation: User: '<anonymous>' has insufficient permission to access EJB:
    In the 6.1 client, I've established a WebServiceProxy and set the userName and password to the proper values, but I can't seem to get past the security.
    If there something special I need to do on either the 8.1 securing side or on the 6.1 accessing side to make this work?
    Any help would be GREATLY appreciated.

Maybe you are looking for