Web Services in WLS 6.1 SP3

Has anyone built and installed a Web Service on 6.1 ? I am trying to learn how
to do this but the first step is always to use the setEnv.sh script provided by
BEA (so I can use the wsgen Ant task provided by BEA ...) and it doesn't run.
I amslowly debugging the thing but wondering if anyone else has some experience
with these issues ?
Thanks in advance !!

Ethan,
Please post the web-services question to the following newsgroup
weblogic.developer.interest.webservices
Additionally, you may want to examine our online documentation for web-services
setup
http://edocs.bea.com/wls/docs61/webServices/develop.html#1011066
or try out the sample at
<beahome>\samples\examples\webservices\rpc>
Look at the package-summary.html for detailed directions on setting up and running
the example
Chuck Nelson
DRE
BEA Technical Support

Similar Messages

  • SOAP / Web Service clustering WLS 7.0.2

              Hi there,
              I'm looking for information on if and how WLS 7.0.2 is capable of
              clustering Web Services. We created the Web Service like following:
              - Created a stateless session bean first
              - Created the web service with a servicegen ant task
              I browsed through edocs.bea.com but
              up to now with no success.
              Any help is greatly appreciated.
              Best regards,
              Fabio
              

              "Fabio Barone" <[email protected]> wrote:
              >
              >Hi there,
              >
              >I'm looking for information on if and how WLS 7.0.2 is capable of
              >clustering Web Services. We created the Web Service like following:
              >- Created a stateless session bean first
              >- Created the web service with a servicegen ant task
              >
              >We need the clustering service for high availability, not
              >for load balancing or session fail-over.
              >
              >Our IT dept. offered a hardware solution with CISCO load-balancers
              >first (our preferred solution for high availability).
              >However, the guys here are not able to configure the hardware properly,
              >that's why we're looking for alternatives with the WLS cluster.
              >
              >I browsed through edocs.bea.com but
              >up to now with no success.
              >
              >Any help is greatly appreciated.
              >
              >Best regards,
              >Fabio
              Fabio, your other alternative is through a group of Web servers configured identically
              using Weblogic proxy plugins. WLS can also act as a load-balancing proxy to interface
              with a Cluster. Search bea docs for Load-balancing Proxy.....
              Good Luck
              

  • Accessing web services in WLS 10.0.1

    We are having trouble accessing a web service on a remote machine from a web application on a separate machine. The web service is accessed via a url with the https protocol with ssl configured on the front and back-end. The application is accessed via a url with the https protocol with ssl configured on the front-end only, both are using the Apache web server.
    The error is complaining about a cert handshake error on the application side which is odd since the application is not configured to use ssl on the back-end.
    Does WebLogic have a tool we can use to make a call to the web service outside of the application to see if we get the same results? We are trying to determine if it's an ssl, WebLogic, or application issue.

    Weblogic does not have any such tool to call the web service hosted on remote machine.
    However in order to drill down the issue, you can create a standalone class and try to access the remote web service from the same machine where the WLS is installed and the application is deployed.
    If the standalone class can access the web service then this is the issue with the WLS configuration for sure.
    Thanks,
    Sandeep

  • Setting Basic Authentication for Web Service in WLS 6.1

    Hi,
    I am trying to set-up a Basic Username/Password authentication for a Web Service
    that is hosted in WLS 6.1.
    How do I go about doing that? Also once I get the username and password, how do
    I pass that info
    to the SOAP servlet to do the authentication? Can you give me some pointers on
    this?
    Thanks
    Madhu

    How do you want to do it? Through use of client.jar for the service or
    directly? Here is how I do it directly:
    String auth = "guest", pwd = "guest";
    URL url = new URL("http://localhost:7001");
    URL cmdURL = new URL(url.toString()+"/systemtest/TestWebService");
    HttpURLConnection conn = (HttpURLConnection) cmdURL.openConnection();
    String encAuth =
    new BASE64Encoder().encode((auth + ":" + pwd).getBytes());
    // BASE64Encode distributes long strings on multiple
    // lines; we don't like that, no siree
    int it = 0;
    while ((it = encAuth.indexOf('\n')) != -1
    || (it = encAuth.indexOf('\r')) != -1) {
    encAuth = encAuth.substring(0, it) +
    encAuth.substring(it + 1);
    conn.setRequestProperty("Authorization", "Basic " + encAuth);
    conn.setRequestProperty("Content-Type", "text/xml");
    conn.setRequestProperty("SOAPAction", cmdURL.toString());
    conn.setDoOutput(true);
    conn.setDoInput(true);
    conn.setUseCaches(false);
    OutputStream oStr = conn.getOutputStream();
    String cmd =
    "<?xml version=\"1.0\" ?>\n"
    + "<soap:Envelope xmlns:soap=\"http://schemas.xmls"
         + "oap.org/soap/envelope/\"><soap:Body>"
    + "<ping><arg0>false</arg0></ping>"
    + "</soap:Body></soap:Envelope>";
    oStr.write(cmd.getBytes());
    oStr.close();
    InputStream iStr = conn.getInputStream();
    byte[] buffer = new byte[1024];
    while (true) {
    int size = iStr.read(buffer);
    if (size == -1)
    break;
    System.out.println(new String(buffer, 0, size));
    ThorAAge

  • Security: web services on WLS 8.5, ALSB and proxy on 9.1

    Hi everyone, here's my current situation. I've got some web services running on WLS 8.5, and I've imported them as Business Services into ALSB. The web services themselves are not secured, but I modified the WSDLs so that I could create proxy services which enforce the security.
    The security enforcement works when I test it through ALSB test console. However, now I'm trying to create a client web service to invoke the proxy. The client is being made using Workshop running on 8.5 server.
    I can get the client to successfully invoke the proxy with no policies attached. Then I made a proxy with BEA's Auth.xml required for inbound messages. The keystores are identical on both the proxy server and the client server.
    <input>
    <wsp:Policy>
    <wsp:PolicyReference URI="policy:Auth.xml"/>
    </wsp:Policy>
    <soap:body use="literal"/>
    </input>
    I imported the WSDL into workshop and created a java control from it. I attached a WSSE policy file to the control:
    <wsSecurityOut>
    <encryption>
    <encryptionKey>
    <alias>flcoi1</alias>
    </encryptionKey>
    </encryption>
    </wsSecurityOut>
    Added this control into a blank web service. The only error being returned from the server is:
    com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.lang.NullPointerException
    String:null
    Detail:
    END SERVICE FAULT
    with no further explanations. Does someone know what would cause this exception? Or if it's even possible to do what I'm trying (between WLS 8 and 9)?

    Hi!
    In my tries to get security to work between WL 8.x to ALSB I realized that WL 8.x don't have support for WS-Security (and therfore WS-Policy) that ALSB uses, but maybe there are some workarounds...
    /Patrik

  • Can't use an Axis web service with WLS 8.1 SP4

    Greetings,
    In order to simlify the problem, I have this very simple web service:
    public class SimpleWS
    public String toUpper (String s)
    System.out.println ("We are in toUpper " + s);
    return s.toUpperCase();
    It works properly with Tomcat 5 but deployed in WebLogic Server 8.1 SP4 is giving NullPointerException. The client is the one generated by the wsdl2java task.
    The exception is raised after having performed the System.out.println; on return.
    I also noticed that it works if the input parameter is an empty string but it fails otherwise.
    I modified the startup script in order to add Axis' saaj.jar in the begining of the CLASSPATH, but it doesn't seem to help.
    Many thanks in advance for any help.
    Nick

    Hi,
    Welcome to HP support forums. Unfortunately no support for the whole series as shown:
       http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&​lc=en&docname=c03168175#N19646
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • What the mechanism of the Java Proxy for Web Services in WLS 8.1

    Hi, all;
    I try to find out how the java proxy of web service in weblogic server 8.1
    works. Suppose I use the java Proxy of a WebSerice in a client application whatever
    whithin or outside the application of the web service, does the proxy actually:
    1. translate my java arguments objects in XML to create SOAP msg,
    2. then send the msg across the network, and web service also response SOAP msg,
    3. then proxy translate it into return value of the method call ?
    If that is true , the Java Proxy seems very inefficient, right?
    Can any body tell me how the proxy works ?
    regards,
    shannon

    Hi Shannon,
    The type of proxy I'm familiar with is at the http connection level and
    associated with the networking properties in the JDK, See:
    http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html
    Your question may be related to JWS proxies, See:
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/howdoi/howUseTheJavaProxyForAWebService.html
    You may want to ask this question in the workshop newsgroup.
    Hope this helps,
    Bruce
    shannon lee wrote:
    >
    Hi, all;
    I try to find out how the java proxy of web service in weblogic server 8.1
    works. Suppose I use the java Proxy of a WebSerice in a client application whatever
    whithin or outside the application of the web service, does the proxy actually:
    1. translate my java arguments objects in XML to create SOAP msg,
    2. then send the msg across the network, and web service also response SOAP msg,
    3. then proxy translate it into return value of the method call ?
    If that is true , the Java Proxy seems very inefficient, right?
    Can any body tell me how the proxy works ?
    regards,
    shannon

  • Weblogic Web services on WLS 6.1 SP2

    Hi all,
    I was trying out a simple web service on Weblogic 6.1 SP2. I have
    written a RPC based service which is published and deployed correctly
    as per the documentation.The problem comes when i am calling this
    service.Sometimes i get output from the webservice.But sometimes i get
    error saying that FileNotFoundException.I am not able to understand
    why this is happening ..Bcos its not consistent..Next time i run the
    program GOD only knows if the service will run or no..( may be
    weblogic guys know).Please help me..as i need to solve this issue
    ASAP.
    thanks and regards,
    amit

    Please post this in the webservices newsgroup.
    -- Rob
    amit wrote:
    Hi all,
    I was trying out a simple web service on Weblogic 6.1 SP2. I have
    written a RPC based service which is published and deployed correctly
    as per the documentation.The problem comes when i am calling this
    service.Sometimes i get output from the webservice.But sometimes i get
    error saying that FileNotFoundException.I am not able to understand
    why this is happening ..Bcos its not consistent..Next time i run the
    program GOD only knows if the service will run or no..( may be
    weblogic guys know).Please help me..as i need to solve this issue
    ASAP.
    thanks and regards,
    amit

  • 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

  • User Name and Password in weblogic realm while invoking a web service

    Hi,
    I deployed a rpc web service using WLS 7.0 SP2 in HP-UX 11 environment. When I
    invoke the web service through my browser (IE 6.0) using the web services url,
    it brings my service method correctly. From there, if I click the invoke button
    it asks me for a network user name and password under "weblogic" realm??? If I
    provide the admin user credentials (which I supplied while creating my domain)
    it is not accepting that it keeps popping up this network user password window
    over and over. Not sure which username/password I have to provide here to see
    the result of my service.
    If I try to invoke the web service through my client (static) I am getting a connection
    refused exception. I guess either way, I am not able to access my web service.
    In the attached file, I have cut and pasted the client stack trace as well as
    the server log trace from weblogic.
    Any ideas would be highly appreciated.
    Thanks,
    Ganesh
    [errorstacktrace.txt]

    I think the client is not able to do a HTTP POST
    to the WLS server but it can do a HTTP GET.
    I dont know why.
    http://manojc.com
    "Ganesh" <[email protected]> wrote in message
    news:3eba91bc$[email protected]..
    >
    Hi,
    I deployed a rpc web service using WLS 7.0 SP2 in HP-UX 11 environment.When I
    invoke the web service through my browser (IE 6.0) using the web servicesurl,
    it brings my service method correctly. From there, if I click the invokebutton
    it asks me for a network user name and password under "weblogic" realm???If I
    provide the admin user credentials (which I supplied while creating mydomain)
    it is not accepting that it keeps popping up this network user passwordwindow
    over and over. Not sure which username/password I have to provide here tosee
    the result of my service.
    If I try to invoke the web service through my client (static) I am gettinga connection
    refused exception. I guess either way, I am not able to access my webservice.
    In the attached file, I have cut and pasted the client stack trace as wellas
    the server log trace from weblogic.
    Any ideas would be highly appreciated.
    Thanks,
    Ganesh

  • Returning data with a doc style web service

    How does one return information using a "Document" style Web Service? WLS 8.1 restricts
    you to a single "in" parameter. Do I return information by using the "return"
    value from the Web Service (assuming it's synchronous)? If so, what are the restrictions
    on the return value. I've read the WLS 8.1 Programming Web Services document but
    it's pretty lite in the area of Document style Web Services.
    Thanks.

    WLS 8.1 supports two document styles:
    #1 document literal
    #2 document wrapped literal
    In the case of #1 a web service method can only
    take zero or one argument. There can be a return
    type (or void). The (single) argument or return type
    could be any supported type, or user defined complex
    types (java beans). In #1 the dispatch is done based
    on the incoming document and not based on the name
    of the method. You can find an example for this at:
    http://manojc.com/?sample13
    In the case of #2 a web service method can have
    any number of arguments. The WS container will
    wrap the method in to a complexType. Here,
    method name will be the name of the complexType
    and arguments will be added as elements of the
    complexType. In this case dispatch is done
    based on the method name. An example here:
    http://manojc.com/?sample14
    Regards,
    -manoj
    "Jack Ottofaro" <[email protected]> wrote in message
    news:3ea55b39$[email protected]..
    >
    How does one return information using a "Document" style Web Service? WLS8.1 restricts
    you to a single "in" parameter. Do I return information by using the"return"
    value from the Web Service (assuming it's synchronous)? If so, what arethe restrictions
    on the return value. I've read the WLS 8.1 Programming Web Servicesdocument but
    it's pretty lite in the area of Document style Web Services.
    Thanks.

  • List the deployed web services in one domain

    Is there a way to list all of the deployed web services into WLS? I know that the
    console parses the deployed web apps and search inside for a web-services.xml
    but I hope there is another way doing this (eg JMX, or some API).
    M.

    Hi,
    pure from a coder instinct I think I would prefer them to be in separate projects for better reuse and clean separation. If I need project 1 to access aclass from Project 2, I can check the dependency check box in the project properties. Is there any business requirement that makes you think having all of these in a single project will help ?
    Frank
    Btw.: I agree that JDeveloper shouldn't constraint developers from doing what they want and if this is a limitation the feel free to file a bug

  • Does Weblogic 8.1 use Apache web service libraries

    Does Weblogic 8.1 use Apache web service libraries ? I've been pressured to include the apache web service libraries, but have been resistant. I was later told by those wanting me to include the apache libraries that weblogic uses the apache libraries, but I have not found any evidence of it.
    Can some confirm or deny this?
    Thanks,
    Eddie

    Hosting an Apache web service inside WLS is basically deploying the Apache service as a webapp in WLS. And in the webapp's WEB-INF\lib folder you would have the Apache libraries.
    Regards
    Shridhar

  • Web Services Return 403

    I am porting a web service from WLS 8.1 to 10.0. It deploys okay, but when I try to link to the WSDL using links found in the console's 'test' section I get a 403. The entire endpoint reference looks fine.
    Does anyone know why I should be getting this error?

    Has anyone figured this out? Seems Flex has really missed the
    boat on building a client-side tool when it can't even make use of
    RESTful services, so I'm sure I'm missing something.
    We've spent many hours trying to figure out how to obtain the
    HTTP Status code and other HTTP Headers in out client, but can't
    seem to get anywhere.
    Help is much appreciated.

  • WLS 9.1 - How to declare datasource for web service?

    If the code for a web service is generated (either a web application or ejb endpoint), how do I make sure the datasource mapping gets added to the appropriate descriptor file?
    I would like to avoid having to do this manually after running the web service compiler. Can anyone help me with this?
    Regards,
    Joshua

    James,
    Which version of Eclipse are you using? Do you have Oracle Enterprise Pack for Eclipse installed? Which version?
    According to the docs, OEPE 11.1.1.6 (the latest of this post) supports WLS back to version 9.2.
    http://download.oracle.com/docs/cd/E15315_05/help/oracle.eclipse.tools.common.doc/html/index.html
    Make sure that you have a WLS 9.2 Server Runtime defined.
    Window->Prefereces->Server->Runtime Environments
    Add a BEA System, Inc WLS 9.2 server runtime and make sure it is pointing to the right place on your file system and try creating your Web Service project again.
    If you still have issues, try the OEPE forum.
    Enterprise Pack for Eclipse

Maybe you are looking for

  • Which is better, the Hip-E, or the Mega PC Series?

    A new computer was released last week that takes aim directly at kids.  It's called the Hip-E, and you can check it out here:  http://www.hip-e.com So, the question is, which do you like better the Mega PC or the Hip-E.  (assuming both work perfectly

  • After moving itunes library paths are still set to old drive

    I have moved my itunes library from my hard drive to a network connected NAS drive. The problem I'm finding is that itunes now can't find the songs in the library as they still show (when looking at 'Get info') the path to the old location). I have d

  • Front Row refusing to load trailers

    I've never had a problem with front row, but for the first time in a few weeks I thought i'd browse the trailers only to find that front row just stalled on the "loading theatrical trailer" screen. Itunes movie and tv show trailers load without issue

  • Converting mp3 voice recording to ulaw

    I am trying to take some voice over recordings that are in mp3 format and convert them to 8bit, 8khz, mono wav files or ulaw or alaw which i believe is the format used in the phone system.  Every time i export to a file with those settings, 8bit, 8kh

  • Quantity field displayomg units as ERR in Bex

    Hi, We have a quantity field it is showing Units as ERR. Source system for us is DB Connect (Oracle server)and if I right click on this I haven't seen transfer global settings option to do the settings. I have read related posts in SCN but those all