Weblogic webservices and JSP

Hi Folks,
I have been stuck with this issue for quite sometime now. I have developed a simple webservice using a java class. It looks something like this..
public class ReceiveMessageClass{
   public void receiveMessage(String msg){
      logIt(msg);
      //Store 'msg' in a memory variable so that the JSP can ping it every 10 sec and read it..
}Now, I need a webpage to look at all the messages I recieve at this webservice. Sounds pretty easy? I have done this with Axis. I can create a WAR and my webservice and my JSP can co-exist and share a variable in memory. But with weblogic, a EAR is created and I am not sure how to get my JSP into the EAR. I am not sure how I can store this 'msg' into memory(some static vbl) and then have my JSP read it and display it.
Any suggestions?

I do not see any weblogic classes in the stack trace. So could this
be something to do with tomcat?
If you are just using the client side of the web services stack, you
only need the Client.jar and webserviceclient.jar file in your war.
Regards,
-manoj.
http://manojc.com
"Stephen Zeng" <[email protected]> wrote in message
news:3ef1d72c$[email protected]..
>
I have packed Client.jar, weblogic.jar, webservices.jar and jsp as aseperated
war to call web sevice and run sucessfully in WLS7.0. But when I ran inTomcat
4.0.1, I got the following error. I try set javax.xml.rpc.ServiceFactoryas context
param in web.xml, but no use. <p>
java.lang.ClassCastException <br>
atjavax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
java:93)<br>
atorg.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)<
br>
atorg.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)<br>
atorg.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
atorg.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
atorg.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
Stephen

Similar Messages

  • Weblogic 9 and JSP compiler errors

    Hello everyone,
              I am having problems with my Jsps in my EAR file deployed on WL 9.0.
              I have a Jsp called upms.jsp that contains the following code snippets:
              After my import statements, I have some code that creates a resource bundle that accesses a properties file:
               <%!
                   ResourceBundle bundle = null;
                   public void jspInit() {
                   bundle = ResourceBundle.getBundle("conf.properties");
              %>
              I get an error from the above code:
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
                        import="java.util.ResourceBundle"
              ^----------------------^
              I am totally clueless as to what that error means.
              Next I declare a bean I use in the jsp:          
                   <jsp:useBean
                        id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
                   scope="session">
                   </jsp:useBean>
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              I get these errors from the above portion:
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Has anyone encountered these before?
              This jsp worked perfectly well when I deployed my EAR file on JBoss...no such luck using Weblogic.
              Is there something I am missing here? I appreciate any help.
              Cheers, :-)
              M.

    Mildred,
              Two suggestions:
              1) use option weblogic.jspc's "-keepgenerated", you can keep the generated
              servlet's source code.
              Please paste it here.
              2) Can you create a simple reproducer(e.g. a war), and put it here, so that
              we can debug it and give more clues.
              To reproduce your issue, I write a simple a simple
              UserPreferencesManagerBean classs below :
              package controllers.beans;
              public class UserPreferencesManagerBean {
              private int p1;
              public void setP1(int p)
              p1 = p;
              public int getP1()
              return p1;
              But it works(oh, I run it under 910MP1).
              We cannot tell too much without your further information
              Thanks
              Leon
              <Mildred A> wrote in message news:[email protected]...
              I am still fighting with this issue.. Dang!
              I don't know what to change in my JSP because the WL JSP compiler errors are
              so out there..
              Here is the first portion of the JSP file:
              <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
              session="true"
              pageEncoding="ISO-8859-1"
              import="java.util.ArrayList"
              import="java.util.HashSet"
              import="java.util.Date"
              import="java.util.Collections"
              import="java.util.ResourceBundle"
              %>
              <%!
              ResourceBundle bundle = null;
              public void jspInit() {
              bundle = ResourceBundle.getBundle("conf.properties");
              %>
              <jsp:useBean
              id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
              scope="session">
              </jsp:useBean>
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              Below is the error I get from this section alone (after precompiling):
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
              import="java.util.ArrayList"
              ^-----------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found 'catch' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found '__ee' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ; (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected } (found 'EOF' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Can anyone see what I am doing wrong here? ?:| ?:|
              Cheers,
              M

  • NoSuchMethodError: weblogic.webservice.core.rpc.ServiceImpl

    I developed webservices and jsp client on my local copy of weblogic - everything works perfectly fine.. I moved the webservices and jspclient to work's developement weblogic server.. Webservices works fine but the jspclient is throwing an exception as sooon as i try to get the service.
    Webservices Local Machine & Client Local -> Works.
    Webservices DevServer & Client Local --> Works
    Webservices DevServer & Client DevServer --> Client throws exception!!
    Throwing following exception on this line: MyWebServices service = new MyWebServices_Impl();
    Error 500--Internal Server Error
    java.lang.NoSuchMethodError: weblogic.webservice.core.rpc.ServiceImpl.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
         at jspclient.MyWebServices_Impl.(MyWebServices_Impl.java:22)
         at jspclient.MyWebServices_Impl.(MyWebServices_Impl.java:16)
         at jsp_servlet.__Mydb._jspService(__Mydb.java:128)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

    This problem was due to the fact that my local machine had weblogic 8.1SP3 installed and dev server had SP2 installed.
    I moved to a server with SP3 and everything worked smoothly.
    Thanks.

  • Validation errors weblogic-webservices.xml during deploy for valid dd

    Hi,
    I am trying to set the login-config for my JAXWS EJB webservice endpoint, but I weblogic doesn't accept my weblogic-webservices.xml
    I validated my weblogic-webservices.xml using several xml validator tools and all say it is valid.
    Here is the weblogic-webservices.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-webservices
         xmlns="http://xmlns.oracle.com/weblogic/weblogic-webservices"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
         xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-webservices http://xmlns.oracle.com/weblogic/weblogic-webservices/1.1/weblogic-webservices.xsd http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <webservice-description>
    <webservice-description-name>AppManager</webservice-description-name>
    <port-component>
    <port-component-name>AppManager</port-component-name>
    <service-endpoint-address>
    <webservice-contextpath>/AppManagerService</webservice-contextpath>
    <webservice-serviceuri>/AppManager</webservice-serviceuri>
    </service-endpoint-address>
    <login-config>
    <j2ee:auth-method>BASIC</j2ee:auth-method>
    <j2ee:realm-name>myrealm</j2ee:realm-name>
    </login-config>
    </port-component>
    </webservice-description>
    </weblogic-webservices>
    Here are the validation errors I get during deployment:
    VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'auth-method@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null> problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'realm-name@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null>
    Error VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'auth-method@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null> problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'realm-name@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null>
    If I remove the namespace indicator 'j2ee' it complains about the same. So it would seem that weblogic ignores the 'j2ee' resulting indeed in a invalid xml.
    Can someone please help me to a weblogic-webservices.xml (example with login-config) that was accepted by weblogic?
    Thanks a lot,
    Eltjo.

    Hi,
    Please try the following: ( Looks like you are mixing the Tag contents of web.xml  as well as weblogic-webservice.xml   together.... )
    weblogic-webservice.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-webservices xmlns="http://www.bea.com/ns/weblogic/weblogic-webservices" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-webservices http://www.bea.com/ns/weblogic/weblogic-webservices/1.0/weblogic-webservices.xsd">
          <webservice-description>
              <webservice-description-name>AppManager</webservice-description-name>
              <port-component>
              <port-component-name>AppManager</port-component-name>
                     <service-endpoint-address>
                        <webservice-contextpath>/AppManagerService</webservice-contextpath>
                        <webservice-serviceuri>/AppManager</webservice-serviceuri>
                     </service-endpoint-address>
              </port-component>
          </webservice-description>
    </weblogic-webservices>And Now provide the <login-config> information separately inside *"web.xml"* file
    <login-config>
         <auth-method>BASIC</j2ee:auth-method>
         <realm-name>myrealm</j2ee:realm-name>
    </login-config>.
    Thanks
    Jay SenSharma

  • Webservice storing and JSP reading

    Hi Folks,
    I have a EJB turned into a webservice and deployed in Weblogic 8.1. Now when this webservice is invoked, I want to show the received message in a browser. What I want to do is write a java class with 'setmessage' and 'getmessage' methods. Then I would use setmessage method to set the received message. My JSP then would ping the variable every 10 sec or so and show it in the browser. Is this feasible?
    I tried creating an EAR with EJBJAR and WAR and a COMMON.jar which had the java class. It worked.
    But with EJB turning into a webserivce...(using servicegen), it automatically creates a EAR, with the web-services.war coming in.
    I tried to include the common.jar and my war in the generated EAR, but then the JSP/servlet in the war AND the ejb-jar doesnt seem to know anything abt the java class in the common.jar
    Any clues, other ways to do this?

    This code
    Map<Integer, Object> readMap = Collections.synchronizedMap(new TreeMap<Integer, Object>());
    //read from input stream
    readMap = input.readObject();Should be
    Map<Integer, Object> readMap = (Map<Integer, Object>)input.readObject();

  • WebServices and Java/Weblogic RPC Client

    Hi,
    I have a simple usability question :
    - Where would I want to use a java client that invokes the (WebLogic) Webservice
    using RPC/SOAP - especially the static client model?
    - Probably the corollary to that would be - why wouldn't I simply invoke the ejb
    using the EJB interface invocation?
    In both cases, the information required by the developer to write the code is
    same, the coding effort is same (only the Properties object being passed to obtain
    the InitialContext is populated with different values) - and everything is hardcoded
    i.e. no dynamic behavior advantage.
    I ran some quick and dirty benchmarks and the webService client is slower than
    the mundane ejb client to the order of magnitude of 1:4, 1:5. (duh .. xml!)
    Two advantages that I can think of are :
    - Because of HTTP, firewall/port issues may be circumvented when using WebServices.
    - The thin client.jar maybe easier to distribute than weblogic.jar.
    Shall deeply appreciate any insight to the utility from a business perspective
    (read ~ convincing clients).
    Thanks,
    Ajay

    It took me almost 3 seconds to find this so I can see why you would ask. http://java.sun.com/webservices/tutorial.html

  • Hot swap and JSP debugging for Weblogic in exploded format?

    Hi,
    I'm trying to use JDeveloper for JSF development to be deployed to a weblogic server.
    I must say JDeveloper is a great tool for JSF development as none of the free IDE in the market can do what JDeveloper does.
    However, I have a question on hot swap and JSP debugging.
    I have managed to setup JDeveloper to debug my JSF application deploy to my Weblogic server's applications folder in exploded format.
    I can step through the java code.
    However, I didn't manage to do a hot swap and the break point set in the JSF-JSP does not seems to take effect.
    I would appreciate any advice on the problem.
    Thanks.
    Han Ming

    How did you setup the server to handle exploded format? Appreciate the help. Sorry can't help with your question though.
    Thnx.
    Soni

  • Compare weblogic SM and webservice SM in OES

    Can you please tell me which one is the better one between the weblogic SM and webservices SM in OES.
    If you have any link which will explains the difference please let me know

    I presume you're talking about OES 11g. WebService SM has some limitations. I would advise to go with WebLogic SM and deploy webservice application in WebLogic Server and play with it.
    HTH.
    -Mahendra.

  • What's up with Webservices and BPM integration?

    According to http://e-docs.bea.com/wli/docs70/design/intarch.htm, table
    3-1, webservices are a key component of the Integration architecture,
    which:
    "Provides sample code to support WebServices integration using
    WebServices technologies
    such as UDDI, WebServices Description Language (WSDL), and Simple Object
    Access
    Protocol (SOAP). WebLogic Integration provides the ability to invoke a
    WebService
    from a BPM workflow, enable a BPM workflow as a WebService, and to
    enable the
    Application View as a WebService. For an introduction to WebLogic
    WebServices,
    see the WebServices and XML Tech Track in the BEA dev2dev Online at the
    following
    URL:
    http://dev2dev.bea.com/index.jsp"
    The only thing which comes close to this description is the BPM Plugin
    for webservices, which is alpha code for WLI 2.1. To deploy this on 7, I
    have only seen a message here describing loosely what to do.
    So is this how we are expected to use webservices together with
    Integration? With alpha code that requires tweaking to work with the
    current version? Or am I missing something vital? The quote from the
    docs suggest "sample code", however the webservices plugin is not
    provided in source, so I don't see how it qualifies as sample code?
    Somehow I also don't quite understand how "sample code" can be construed
    as a "key component".
    So what's up with webservices and Integration?
    -Lasse
    (only speaking for myself in news!)

    Your comment about the lacking of web services in WLI is correct
    and a fundamental issue I have signalled to BEA already many
    months ago. I even followed the BPM course to make sure I did
    not miss an important point. The BPM course did not deal with
    webservices because it is not available. But the fundamental remark goes further
    because webservices also have a dynamic
    interface WSCI to behave within a choreography of webservices
    within a business process. BPM is still mainly workflow based
    and intracompany. This is not what is expected as business
    processes which are collaborative and a new paradigm alternative for applications
    conform BPML-WSCI or BPEL4WS-ws transaction.
    I still wait from BEA a confirmation that webservices and collaborative business
    processes according to (at least) one of
    the above standards will be included within the next version of weblogic enterprise
    platform due end of March 2002.
    Kind regards,
    Paul Meurisse
    Email : [email protected]

  • Ignoring Http basic authentication header in wls 7.0.sp2 web service servlet (weblogic.webservice.server.servlet.WebServiceServlet)

    Hi!
    We need to implement authentication using our own methods, and the authentication
    information is provided to the web service implementation in a basic authentication
    header. The problem is, that the servlet
    weblogic.webservice.server.servlet.WebServiceServlet, which handles web services
    in
    wls 7.0.sp2, always attempts to perform authentication, if the header is present.
    Is there any way to circumvent this, because we want to implement authentication
    on our own?
    I already know two workarounds:
    The best would of course be to implement a custom security realm for our own
    authentication system. This is not an option, implementing an own security
    realm is overkill for this specific web service.
    The other way would be to route the requests by way of a custom servlet, which
    would
    remove the basic authentication header, and put the authentication info in custom
    headers, such as x-auth: <user:password>, or smthng similar, and after successful
    authentication, make a call to bea's servlet weblogic.webservice.server.servlet.WebServiceServlet.
    But still, I'd like to know if there is any way to tell bea's servlet to ignore
    the basic
    authentication header?
    Oh yeah, by the way, this is URGENT, as always. (really!! ;)
    Toni Nykanen

    Currently there is no option to turn off security check.
    I think you can use a servlet filter mapped to the URL
    of your service, instead of a proxy servlet?
    Regards,
    -manoj
    http://manojc.com
    "Toni Nykanen" <[email protected]> wrote in message
    news:3ef1577b$[email protected]..
    >
    Hi!
    We need to implement authentication using our own methods, and theauthentication
    information is provided to the web service implementation in a basicauthentication
    header. The problem is, that the servlet
    weblogic.webservice.server.servlet.WebServiceServlet, which handles webservices
    in
    wls 7.0.sp2, always attempts to perform authentication, if the header ispresent.
    Is there any way to circumvent this, because we want to implementauthentication
    on our own?
    I already know two workarounds:
    The best would of course be to implement a custom security realm for ourown
    authentication system. This is not an option, implementing an own security
    realm is overkill for this specific web service.
    The other way would be to route the requests by way of a custom servlet,which
    would
    remove the basic authentication header, and put the authentication info incustom
    headers, such as x-auth: <user:password>, or smthng similar, and aftersuccessful
    authentication, make a call to bea's servletweblogic.webservice.server.servlet.WebServiceServlet.
    >
    But still, I'd like to know if there is any way to tell bea's servlet toignore
    the basic
    authentication header?
    Oh yeah, by the way, this is URGENT, as always. (really!! ;)
    Toni Nykanen

  • Call Weblogic WebService in Delphi

    Hi, I'm a newbie in WebService. I use Weblogic servicegen ant task wrap a stateless
    EJB to webservice. The bean has a method with a string input parameter as follow:
    String Test(String inputParam);
    The WSDL generated by Weblogic WebService is like follow:
    - <message name="Test">
    <part name="string" xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:string"
    />
    I use Delphi as Webservice client. When I use Delphi's WSDL Import Wizard, it
    renamed parameter "string" to "string_" because of "string" is a reserved word
    in Delphi. So when I invoked the Webservice, an exception was thrown:
    Found SOAPElement [<string_ xsi:type="xsd:string>test</string_>]. But was not
    able to find Part that is registered with this Message which corresponds to this
    SOAPElement
    How can I solve this problem? On the another word, Can I control the parmater
    name generate by Weblogic Webservice ant task?
    thanks very much!

    Please post web services issues in the webservices newsgroup.
    Vimala wrote:
    You can define the parameter name to the method and return parameter name with
    a web-services.xml.
    The link below should give a good start:
    http://e-docs.bea.com/wls/docs70/webserv/dd.html#1057960
    Vimala
    "Dumack Wu" <[email protected]> wrote:
    Hi, I'm a newbie in WebService. I use Weblogic servicegen ant task wrap
    a stateless
    EJB to webservice. The bean has a method with a string input parameter
    as follow:
    String Test(String inputParam);
    The WSDL generated by Weblogic WebService is like follow:
    - <message name="Test">
    <part name="string" xmlns:partns="http://www.w3.org/2001/XMLSchema"
    type="partns:string"
    />
    I use Delphi as Webservice client. When I use Delphi's WSDL Import Wizard,
    it
    renamed parameter "string" to "string_" because of "string" is a reserved
    word
    in Delphi. So when I invoked the Webservice, an exception was thrown:
    Found SOAPElement [<string_ xsi:type="xsd:string>test</string_>]. But
    was not
    able to find Part that is registered with this Message which corresponds
    to this
    SOAPElement
    How can I solve this problem? On the another word, Can I control the
    parmater
    name generate by Weblogic Webservice ant task?
    thanks very much!
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • IDoc to webservice and get the response back into another IDoc.

    Hi guys
    We have a scenario where we need to send an IDoc to webservice and get the response back into another IDoc.
    Questions:
    1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge).
    2. Is there a Async to Sync bridge in BPM?
    3. How do I use this bridge in my scenario and customize it?
    4. If not possible, provide me the related docs using BPM for the same scenario.
    Appreciate your quick response
    Regards
    Naidu

    Hi,
    this link may help u............,
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1134. [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403. [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Azeez khan.

  • Error in Weblogic Webservice

    I was using SAAJ 1.3 initially in WEBINF/lib and my code erred with
    java.lang.NoSuchMethodError: newInstance at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection
    Error Location:
    SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = factory.createConnection();
    It erred on the above highlighted line. After some searching, I found that it could be because of Weblogic Server 9.2 not compatible with SAAJ 1.3. So I used SAAJ 1.2 and this error got solved. Now I am stuck up with the following error.
    java.lang.UnsupportedOperationException: This class does not support SAAJ 1.1
    at weblogic.webservice.core.soap.SOAPMessageImpl.getSOAPBody(SOAPMessageImpl.java:634)
    Error Location:
    SOAPElement attachmentElement = (SOAPElement)message.getSOAPBody().getElementsByTagNameNS(ws, "Attachment").item(0);
    I am using SAAJ 1.2 but it says the class does not support SAAJ 1.1.
    Again after some googling, I found that the error is due to some bug in Weblogic 9.2 when it is used with SAAJ 1.2. It was mentioned that following steps can be used to overcome this error.
    1. Set classpath to latest saaj-impl.jar in startweblogic.cmd
    2. Set the below 2 system properties in code.
    System.setProperty("javax.xml.soap.MessageFactory","com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
    System.setProperty("javax.xml.soap.SOAPConnectionFactory","weblogic.wsee.saaj.SOAPConnectionFactoryImpl");
    I tried this too but it didnt work.
    How can i get rid of this error? Also if i m going to set the classpath to SAAJ 1.3 in startweblogic.cmd, will it not result in the first error i got i.e java.lang.NoSuchMethodError: newInstance at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.
    If my question is not very clear, please bear with me. I am pretty new to Webservice.
    Can someone tell me how can i overcome this problem.

    Have you included the IP addresses of the managed servers into the cluster address like for eg 192.127.1.2,192.127.1.2 in the cluster address field in the administration console? include it if not included that will fix the issue.
    Regards,
    Dinesh

  • WL vs. WL-express and JSP vs. javascript/SQL

    folks-
    i am trying to convince a certain party to
    disband a web-based job tracking system being
    written in ASP, javascript, html, css and SQL.
    it will be hosted on MS webserver running NT.
    i am trying to convince them to use JSP and
    WL express. i have done two years of EJB
    component work on weblogic, however, i have not
    done work with JSP or thin-clients. i was mostly
    business-logic.
    anyway i have some questions and need some
    direction. i already know JSP is better than
    ASP/javascript etc. because:
    * ASP is proprietary. ditto for VBscript
    * with an IDE creating JSP is easy and JSP
    automatically creates servlets which is way
    faster than by hand
    * JSP is JAVA based and hence benefits from
    all the portability pluses of JAVA
    but here are the more difficult questions:
    * why is WL express better than an MS
    web server? (not including WL market share
    and size. after all MS can claim that)
    * since WL express does not have an EJB
    container, how do you access the database?
    via JDBC? does one just have JDBC code
    floating around?
    * since there is no EJB container how does
    one separate presentation from logic from
    data access? this is a major downside of
    javascript, html, css and SQL etc.
    * if a web app grows beyond JSP with WL express
    into the need for an EJB container, i would
    think that most of the app needs to re-written
    as business-logic must be refactored into EJBs
    and all JDBC code will be replaced by container
    managed beans. this sounds a like a lot of
    rework.
    * isn't JSP slower than javascript as the
    servlet and hmtl code is bounced back and
    force across the network?
    with respect to architecture, scalability,
    and robustness what are the downsides to an
    MS webserver and non-JSP coding?

    * since WL express does not have an EJB
    container, how do you access the database?
    via JDBC? does one just have JDBC code
    floating around?
    Use JDO or an OR-mapper or embed JDBC into your own data access classes.
    * since there is no EJB container how does
    one separate presentation from logic from
    data access? this is a major downside of
    javascript, html, css and SQL etc.
    Presentation=JSP
    Logic=Servlet
    Data access=JDO or similar
    * if a web app grows beyond JSP with WL express
    into the need for an EJB container, i would
    think that most of the app needs to re-written
    as business-logic must be refactored into EJBs
    and all JDBC code will be replaced by container
    managed beans. this sounds a like a lot of
    rework.
    You should be able to tell up front if it a tx-intensive app that requires
    WLS.
    * isn't JSP slower than javascript as the
    servlet and hmtl code is bounced back and
    force across the network?
    They aren't exclusive. For dynamic pages, use Javascript on the front end,
    JSP on the back.
    * with respect to architecture, scalability,
    and robustness what are the downsides to an
    MS webserver and non-JSP coding?
    In the real world, and for most apps, while Java has the architectural edge,
    they both have similar scalability and similar robustness. MS gives you no
    choice though, and you rewrite every time they see a new buzzword. You can't
    leave MS-land without abandoning almost everything. You can leave WLS in a
    week if you have to.
    It's an investment. Invest wisely.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "shane miller" <[email protected]> wrote in message
    news:[email protected]...
    folks-
    i am trying to convince a certain party to
    disband a web-based job tracking system being
    written in ASP, javascript, html, css and SQL.
    it will be hosted on MS webserver running NT.
    i am trying to convince them to use JSP and
    WL express. i have done two years of EJB
    component work on weblogic, however, i have not
    done work with JSP or thin-clients. i was mostly
    business-logic.
    anyway i have some questions and need some
    direction. i already know JSP is better than
    ASP/javascript etc. because:
    * ASP is proprietary. ditto for VBscript
    * with an IDE creating JSP is easy and JSP
    automatically creates servlets which is way
    faster than by hand
    * JSP is JAVA based and hence benefits from
    all the portability pluses of JAVA
    but here are the more difficult questions:
    * why is WL express better than an MS
    web server? (not including WL market share
    and size. after all MS can claim that)
    * since WL express does not have an EJB
    container, how do you access the database?
    via JDBC? does one just have JDBC code
    floating around?
    * since there is no EJB container how does
    one separate presentation from logic from
    data access? this is a major downside of
    javascript, html, css and SQL etc.
    * if a web app grows beyond JSP with WL express
    into the need for an EJB container, i would
    think that most of the app needs to re-written
    as business-logic must be refactored into EJBs
    and all JDBC code will be replaced by container
    managed beans. this sounds a like a lot of
    rework.
    * isn't JSP slower than javascript as the
    servlet and hmtl code is bounced back and
    force across the network?
    with respect to architecture, scalability,
    and robustness what are the downsides to an
    MS webserver and non-JSP coding?

  • Weblogic.appc compiler for Weblogic 9 and higher version

    We had problem precompiling the jsp's using weblogic.jspc compiler after migrating the project from 8.1 to 9.2. From the edocs weblogic documentation we see that jspc compiler is deprecated from weblogic 9 onwards and they recommend using weblogic.appc for precompiling the jsp's.
    Please note if you are passing runtime expression values in the name attribute of the jsp param tag, you will have to explicitly enabke "<rtexprvalue-jsp-param-name>" to true in weblogic.xml deployment descriptor (format shown below).
    <weblogic-web-app>
    <jsp-descriptor>
    <rtexprvalue-jsp-param-name>true</rtexprvalue-jsp-param-name>
    </jsp-descriptor>
    </weblogic-web-app>
    Below is the edocs link which has JSP descriptors information for Weblogic 9,2
    http://e-docs.bea.com/wls/docs92/webapp/weblogic_xml.html#wp1038491
    - - Tarun

    The solution given in the below link worked for me .
    http://a-developer-life.blogspot.com/2010/11/injecting-into-ejb3-with-google-guice.html?showComment=1328674836129#c7251888680841418914

Maybe you are looking for

  • N958GB - video pauses during recording

    Hello, I just got my new N958GB last week. I played with the camera and recorded video with no problems. I then went ahead and installed applications, such as yahoo go, youtube, and setup my e-mail. After this was completed, I went ahead and recorded

  • Using Reports in Web Layout Editor

    I am tring to figure out how to use the commit date of a document to the repository in a historical or active report. I have the option of release date but this will not work for the SLA metrics that I am trying to gather as some documents enter work

  • CO period locked - can we unlock period and do COPA assessment?

    Hi Friends, CO period has been locked for last month, but some of the cost center assessment to COPA has not been carried out last month, resulting in amount lying in cost center itself. Could you please let me know whether we can unlock last month i

  • Parallels vs Bootcamp

    Does anyone have any unbiased opinions on Bootcamp versus Parallels for my iMac. I have 4GB of RAM  and the dual Intel 3.06GHz processor. My concern with parallels is the resource that it requires when it is suspended. I understand that the memory fo

  • Database Lite with Apex

    Hi, I am looking at developing an integrated system for a client who requires that their off site tablet pc's are able to synchronize with their central 10g database. Database Lite looks ideal for this I am just looking for answers on a couple of poi