Weblogic Webservices

Hello Friends,
I am having some doubts in accessing a restricted webservice from a java program.
The Webservices is deployed with basic authentication. When i access in Mozilla ,it asks for username and password.
While i give correct login, i get wsdl displayed.
I have tried generating client jar file using ant tasks.
Now to invoke, i pass the username and password to the
getServicePort method (usern,pass)
But When i see the stub_Impl class, i can see setpropety method.
Can anyone tell me how to pass username and password through setting the javax.xml.rpc.auth property in stub...Sample program would be of great help
Thanks
Karthik

John Stegeman wrote:
This isn't the Weblogic forum either.
I suggest you have a good look at the forum list before spraying this question elsewhere.To be fair, its named "application server"; hardly a helpful name.
https://forums.oracle.com/forums/category.jspa?categoryID=193

Similar Messages

  • How to resolve setPrefix() in SOAP(saaj API) with weblogic/webservices jar?

    Hi,
    I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
    My environment is as below:
    1) Weblogic 8.1 SP2 server
    2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    3) A method is exposed as web-service
    4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
         MessageFactory mf = MessageFactory.newInstance();
         SOAPMessage sm = mf.createMessage();
         SOAPPart sp = sm.getSOAPPart();
         sp.setPrefix("soapenv");
         SOAPEnvelope se = sp.getEnvelope();
         se.addNamespaceDeclaration("soapenv","http://orion:7001");
    giving the following error at runtime:
    Exception in thread "main" java.lang.AbstractMethodError:
    weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
    at Client.main(Client.java:39)
    I am able to compile without any error/warning all the time.
    This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
    I am able to run the same application(outside Web-application as a stand-alone java program) without
    any error while not using weblogic/webservices jar in the classpath.
    The saaj jars needed to run without any error are:
    saaj-api.jar
    saaj-impl.jar
    mailapi.jar
    activation.jar
    xercesImpl.jar
    xalan.jar
    dom.jar
    jdom.jar
    I thinks this is a compatibility issue. Please suggest to resolve it.
    Thanks in advance,
    pal_sk

    Hi,
    I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
    My environment is as below:
    1) Weblogic 8.1 SP2 server
    2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    3) A method is exposed as web-service
    4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
         MessageFactory mf = MessageFactory.newInstance();
         SOAPMessage sm = mf.createMessage();
         SOAPPart sp = sm.getSOAPPart();
         sp.setPrefix("soapenv");
         SOAPEnvelope se = sp.getEnvelope();
         se.addNamespaceDeclaration("soapenv","http://orion:7001");
    giving the following error at runtime:
    Exception in thread "main" java.lang.AbstractMethodError:
    weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
    at Client.main(Client.java:39)
    I am able to compile without any error/warning all the time.
    This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
    I am able to run the same application(outside Web-application as a stand-alone java program) without
    any error while not using weblogic/webservices jar in the classpath.
    The saaj jars needed to run without any error are:
    saaj-api.jar
    saaj-impl.jar
    mailapi.jar
    activation.jar
    xercesImpl.jar
    xalan.jar
    dom.jar
    jdom.jar
    I thinks this is a compatibility issue. Please suggest to resolve it.
    Thanks in advance,
    pal_sk

  • 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

  • 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

  • Weblogic-webservices-policy.xml

    hi,
    iam getting the following error in weblogic-webservices-policy.xml
    Referenced file (weblogic-webservices-policy.xml) contains errors (http://www.bea.com/ns/weblogic/webservice-policy-ref/1.0/webservice-policy-ref.xsd).
    weblogic-webservices-policy.xml containts the following lines of code:
    <?xml version='1.0' encoding='UTF-8'?>
    <webservice-policy-ref xmlns="http://www.bea.com/ns/weblogic/webservice-policy-ref" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/webservice-policy-ref http://www.bea.com/ns/weblogic/webservice-policy-ref/1.0/webservice-policy-ref.xsd"></webservice-policy-ref>
    can anybody suggest how to fix this error?
    thanks
    john

    Hi!
    I was looking for some information regarding the weblogic-webservices-policy.xml file and founf your post. Did you success to solve the problem with it?
    Greatly appreciate any inputs
    Sincerely
    J.

  • Wls 10.3 weblogic-webservices.xml transaction-timeout attribute not working

    Hi, need some urgent need.
    I have a stateless ejb webservice and I'm trying to set the transaction timeout for some of the methods. Right now my webservice transaction is timing out to the default of 30 secs. I've tried setting in the admin console the JTA transaction timeout option, didn't work (file a case with bea support #81233). And after days of researching and searching I came across that you can setup the weblogic webservice transaction-timeout thru the weblogic-webservices.xml deployment descriptor. Tried setting the transaction-timeout attribute to 120 secs. and that didn't work. Here is the snippet of the xml file.
    <?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>com.starcomsoft.pp.system.jws.SystemWSImpl</webservice-description-name>
    <webservice-type>JAXRPC</webservice-type>
    <port-component>
    <port-component-name>SystemWSSoapPort</port-component-name>
    <service-endpoint-address>
    <webservice-contextpath>starcomsoft_ws</webservice-contextpath>
    <webservice-serviceuri>/SystemWSImpl</webservice-serviceuri>
    </service-endpoint-address>
         <transaction-timeout>120</transaction-timeout>
         <reliability-config>
              <inactivity-timeout>P0DT600S</inactivity-timeout>
         </reliability-config>
    </port-component>
    </webservice-description>
    </weblogic-webservice>
    Does anybody have any clue to solve my urgent need.
    Thanks in advance for your help or suggestion.

    Unhandled exception
    Type=Segmentation error vmState=0x00040000
    J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000033
    Handler1=F144C588 Handler2=F1446A9C
    Module=/app/oracle/product/Middleware/wlserver_10.3/server/native/aix/ppc/libmuxer.so
    Module_base_address=D8457000
    Target=2_40_20091214_049398 (AIX 5.3)
    CPU=ppc (4 logical CPUs) (0x600000000 RAM)
    ----------- Stack Backtrace -----------
    (0xD696E748 [libj9vm24.so+0x48748])
    (0xD8383EDC [libjclscar_24.so+0x10edc])
    (0xD8384514 [libjclscar_24.so+0x11514])
    (0xD6967718 [libj9vm24.so+0x41718])
    (0xD6967158 [libj9vm24.so+0x41158])
    (0xD69640D0 [libj9vm24.so+0x3e0d0])
    (0xD6932C9C [libj9vm24.so+0xcc9c])
    (0xD69BBA18 [libj9prt24.so+0x3a18])
    (0xD6932BB8 [libj9vm24.so+0xcbb8])
    (0xD69A77CC [libj9thr24.so+0x27cc])
    pthreadbody+0x118 (0xD010D784 [libpthreads.a+0x3784])

  • Weblogic webservice problem

    Hi , friends, I have a problem regarding web services in oracle weblogic workshop.
    In our application we need to create 2 web services. We have 10 to 12 packages under src folder , i.e.,
    src(under this folder)------------------>com.abc.des.desk (like this we have couple of packages). All those packages are having different java related file, porlets etc.
    I need to create another package called com.abc.des.webservices
    under this I have to create 2 webservice (JAX-WS) with annotations.All these webservices along with remaining above mentioned packages goes to one single EAR file.
    I am unable to select JAX-WS related facets.
    When I select weblogic webservices , it is giving a warning message that "No projects found that support web services.The Standard Annotated Web Service facet must be enabled".I didn't understand where I need to enable them.
    Please suggest on this problem.
    Thanks a lot
    Peter.

    Hi Peter
    1. Since you used the words like portlets etc, I am assuming you have a PortalWeb Project. So you have like portalEAR, portalWeb and may be portalDataSync project. NOW under portalWeb project src you have your own packages. This is where you need to create a new WebService also under a new package. FIRST of all, you need to add Web Services Project Facet to this portalWeb pojrect. Still it may NOT work. But I will give you an idea. Select your portalWeb project. Right clikc mouse, select Properties. From Properties window on left side, select Project Facets. On right side you will see list of Facets already selected. Click on Modify Project button on bottom right hand corner. This opens up Project Facets window. Check the Facet named Web Services. NOW immediately in the bottom you may see some Errors like "Standard Annotated Web Services 2.0 and Beehive Controls 1.0.1 cannot both be selected" etc. I am talking about WLP 10.3 version. This means by default portalWeb project will have Beehive stuff facets Enabled to allow use of Pageflow Portlets. So you cannot add Web Services Facet to this Same portalWeb project. Unless you want to manully remove Beehive Facets (means you cannot use Pageflow portlets), then may be Web Services Facets can be added.
    One work around or more elegant solution is create a another brand new project like myWebServices project and enable Web Services for this. Nothing but create a new WebServices project with all Web Services Facets. Add this to the same portalEAR project. Then add all your webservices to this new project. NOW you can always invoke these Web Services from portalWeb project src code like utility classes or Pageflows etc. Incase if you want to use some utility classes across both portalWeb and webServices project, then you need to add all these classes into another simple Java Project. Then import this into both portalWeb and webServices projects.
    I saw another opotion also. When you select Web Services Project Facet, it has 2 child facets. Standard Annotated Web Services whose default version is 2.0. If you choose version 1.0, look like there are no dependencies. Means poralWeb project can have Web Services Facet provided you use Standard Annotated Web Sevices Version 1.0 (instead of default 2.0). Now using this you may loose some new features from 2.0. I am not sure to what extent this will work. But give this a shot in your dev Env. And see if you can create a simple webservice and live with that.
    portalEAR can have both portalWeb project and any other projects like webServices or Java utility porjects etc. All these projects will be bundled into one single .EAR file only for deployment.
    Thanks
    Ravi Jegga

  • Weblogic webservice

    Hi , friends, I have a problem regarding web services in oracle weblogic workshop.
    In our application we need to create 2 web services. We have 10 to 12 packages under src folder , i.e.,
    src(under this folder)------------------>com.abc.des.desk (like this we have couple of packages). All those packages are having different java related file, porlets etc.
    I need to create another package called com.abc.des.webservices
    under this I have to create 2 webservice (JAX-WS) with annotations.All these webservices along with remaining above mentioned packages goes to one single EAR file.
    I am unable to select JAX-WS related facets.
    When I select weblogic webservices , it is giving a warning message that "No projects found that support web services.The Standard Annotated Web Service facet must be enabled".I didn't understand where I need to enable them.
    Please suggest on this problem.
    Thanks a lot
    Peter.

    There is a difference between application server and program access to a webservice. especially is SSL used server needs the key to access the web service. What error do you get?

  • Weblogic Webservices Malfunction

    Hi to all. I'm developing WebServices with Java on Weblogic 12.1.2 server and I found two problems:
    1) The "beaInvoke" method appears in my webservice. This method isn't in my wsdl file, and I don't know why Weblogic is creating it. I don't want this method in my service,because this can be a possible security problem.
    2) In this java annotation
    @javax.jws.WebService( serviceName = "ConversorSeguro",
                          portName = "ConversorSeguroSOAP",
                          targetNamespace = "urn:atica:cursosoa:services:conversorseguro",
                          wsdlLocation = "C:/Workspace/projects/prototipo/ConversorSeguro?wsdl",
                          endpointInterface = "org.umu.atica.secure.wservices.ConversorSeguro")
    If I want to use in wsdlLocation parameter with relative path, like wsdlLocation = "prototipo/ConversorSeguro?wsdl" as I used to in OC4J, doesn't work. Weblogic needs a absolute path for do it. I need a relative path to use my webservice in develop and company servers.
    How can I solve this problems?
    Thanks.

    Hi!
    I was looking for some information regarding the weblogic-webservices-policy.xml file and founf your post. Did you success to solve the problem with it?
    Greatly appreciate any inputs
    Sincerely
    J.

  • Opening a WebLogic WebService file in Workshop

    Hello,
    Some of the members in our team are having this weird issue of opening a weblogic webservice in the workshop! Whenever we open the webservice, the design and source view take forever to load and everytime we change a comment or code, the save takes a very long time. We are not sure if the save/open is generating any artifacts behind the scene! We have event turned off the "build automatically" feature as well but that didn't help. Any one has an idea of what is causing this?
    Thanks in advance for the help
    SG

    Hi,
    In my opinion, it is based on the line text to get data, so if there are some text or newline character in the source file, it will generates the additional rows.
    I think excel object model doesn’t provide the way to deal with it directly, you need to save CSV file with the correct format in your code.
    For exist source file, you could modify the source file data, then import data to excel through excel object model.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Where is the exception stacktrace - weblogic.webservice.core.handler.Invoke

    Hi, I am debugging a Web Service. It sometimes throws an exception while deserializing the input. But when I look through the log all I see is:
    ####<Jul 27, 2010 9:20:43 AM EDT> <Info> <WebService> <myhost.net> <prodServer114> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1280236843573> <BEA-220024> <Handler weblogic.webservice.core.handler.InvokeHandler threw an exception from its handleRequest method. The exception was:
    java.lang.NumberFormatException: For input string: "".>
    How do I make weblogic spit out the exception stacktrace?
    I am using Weblogic 9.2.
    Thanks in advance!

    Hi, I am debugging a Web Service. It sometimes throws an exception while deserializing the input. But when I look through the log all I see is:
    ####<Jul 27, 2010 9:20:43 AM EDT> <Info> <WebService> <myhost.net> <prodServer114> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1280236843573> <BEA-220024> <Handler weblogic.webservice.core.handler.InvokeHandler threw an exception from its handleRequest method. The exception was:
    java.lang.NumberFormatException: For input string: "".>
    How do I make weblogic spit out the exception stacktrace?
    I am using Weblogic 9.2.
    Thanks in advance!

  • Eclipse:package weblogic.webservice.tools.wsdlp does not exist

    Hi, everyone! I got an error While I was Compiling the Entire MedRec Project application on Eclipse3.1 with ant. However, when I used setEnv.cmd and ant command(), it's all Ok! The error message shows as below:
    banner:
    [echo] #### S T A R T C O M M O N W E B A P P ####
    [mkdir] Created dir: C:\medrec_tutorial\build\tmp
    build:
    [javac] Compiling 23 source files to C:\medrec_tutorial\build\tmp
    [javac] C:\medrec_tutorial\src\common\web\com\bea\medrec\utils\MedRecWebAppUtils.java:319: package weblogic.webservice.tools.wsdlp does not exist
    [javac] if (th instanceof weblogic.webservice.tools.wsdlp.WSDLParseException) {
    [javac] ^
    [javac] 1 error
    BUILD FAILED
    file:C:/medrec_tutorial/src/common/web/build.xml:29: Compile failed; see the compiler error output for details.

    Bruce Stephens <[email protected]> wrote:
    Hello,
    This looks like a bug that has already been reported and resolved. If
    you could provide your test case to our super support group [1], and
    reference CR127344, they should be able to sort out this issue.
    Thanks,Hi ,
    I also got the same error.If u find the solution please email me
    isuru [email protected]
    Thanx
    Bruce
    [1]
    http://support.bea.com
    [email protected]
    Franck wrote:
    Hello,
    when I try to build my webservice with a stateless bean and a complexdata type (byte[]), by using ANT and SERVICEGEN.
    I have the following exception (with WL 8.1, but it works witout problemwith WL 7.0.4).
    *** ERROR:
    -package weblogic.xml.schema.binding does not exist
    [servicegen] extends weblogic.xml.schema.binding.BeanCodecBase
    What has changed between the both version.
    can somebody help me
    Tank you
    Regards

  • Weblogic WebServices Client: how to use HTTP 1.1 protocol ?

    Hi,
    I generated a stub ( jar file) to call a weblogic webservice from a client, both in weblogic workshop 8.1.4 and weblogic workshop 10.3.
    It seems that both jars (generated by weblogic) use HTTP 1.0 protocol (I can see the HTTP 1.0 requests from access log file)
    I would like to use HTTP 1.1 protocol : can I set some property ? Which property ? Can you help me ?

    Weblogic 10.3 generated client use HTTP 1.1 protocol

  • Weblogic WebServices Client: how to force HTTP 1.1 protocol ?

    I generated a stub ( jar file) to call a weblogic webservice from a client, both in weblogic workshop 8.1.4 and weblogic workshop 10.3.
    It seems that both jars use HTTP 1.0 protocol; I can see the HTTP 1.0 requests from access log file.
    I would like to use HTTP 1.1 protocol : can I set some property ? Which property ? Can you help me ?

    Weblogic 10.3 generated client use HTTP 1.1 protocol

  • Java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl

    Hello Gurus,
    Can you please help me with following issue--
    I have created a secured web service's client from netbeans 6.8.Then I made a jar file of it.Then I have integrated that jar in my ADF application's viewcontroller project .I have used the jar from backing bean of a jspx page.
    If I create a main method in the bean and call the service from inside main method then everything works fine but if i remove the main method and call the service from a button click of the jspx page then i get the following error.
    <Jan 7, 2012 11:01:34 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <ActionListenerImpl><processAction> java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
    javax.faces.el.EvaluationException: java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
         at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
         at com.sahaj.billDetails.NotifySREIBilling_OB_Stub.notifySREIBilling_OB(NotifySREIBilling_OB_Stub.java:67)
         at com.sahaj.tester.Tester.getBillDetails(Tester.java:94)
         at Test.cb1_action(Test.java:19)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 36 more
    My bean class looks as follows--
    public class Test {
    public Test() {
    *public String cb1_action() {//does not work*
    HashMap billDetails = new Tester().getBillDetails("212078438");
    System.out.println(billDetails.size());
    return null;
    *public static void main(String[] args) {//works*
    HashMap billDetails = new Tester().getBillDetails("212078438");
    System.out.println(billDetails.size());
    }

    Hi Mike,
    Support for SAAJ was added in WLS 8.1, see:
    http://edocs.bea.com/wls/docs81/webserv/interceptors.html#1058444
    Can you try your code on the latest release?
    Thanks,
    Bruce
    Mike Reiche wrote:
    >
    What do I need to fix this?
    WLS 7.0 sp2
    - Mike
    java.lang.Error: NYI
    at
    weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessageImpl.j
    ava:360)
    at
    com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnec
    tion.java:228)
    at
    com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run
    (HttpSOAPConnection.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnec
    tion.java:126)

Maybe you are looking for