Using web logic 6.1 web service

hello.
I'm testing web services in weblogic 6.1
I have created a web service and client. they exchange messages well.
their request and Response messages are like below
request Message------------------------------------------------------------------------------------
POST /weather/weatheruri HTTP/1.1
Content-length: 483
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:getTemp xmlns:ns0='urn:Weather'
SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
<arg0 xsi:type='xsd:string'>SomeString</arg0>
</ns0:getTemp>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response Message-------------------------------------------------------------------------------------
HTTP/1.1 200 OK
Date: Mon, 08 Sep 2003 02:08:02 GMT
Server: WebLogic WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
Content-Type: text/xml; charset=UTF-8
Transfer-Encoding: Chunked
Connection: Close
0291
<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/1999/XMLSchema'>
<SOAP-ENV:Body>
<ns0:getTempResponse xmlns:ns0='urn:local' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
<return xsi:type='bean:weatherResult' xmlns:bean='java:examples.webservices.rpc.weather'
>
<temperature xsi:type='xsd:float'>-273.15</temperature>
<zipcode xsi:type='xsd:string'>SomeString</zipcode>
</return>
</ns0:getTempResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
0000
they seems to work fine.
but i'm getting error to decode response message on client side.
C:\... >java Client
java.lang.reflect.UndeclaredThrowableException: java.lang.InstantiationException
: examples.webservices.rpc.weather.weatherResult
at weblogic.soap.codec.SimpleSoapEncodingCodec.newInstance(SimpleSoapEnc
odingCodec.java:198)
at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncoding
Codec.java:178)
at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncoding
Codec.java:151)
at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:96)
at weblogic.soap.codec.Operation.read(Operation.java:100)
at weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:464)
at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:430)
at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
at weblogic.soap.wsdl.WebServiceInvocationHandler.invoke(WebServiceInvoc
ationHandler.java:31)
at $Proxy0.getTemp(Unknown Source)
at Client.main(Client.java:18)
Exception in thread "main" java.lang.NullPointerException
at Client.main(Client.java:23)
weatherResult bean is like below.
package examples.webservices.rpc.weather;
public class weatherResult implements java.io.Serializable{
     private     String zipcode;
     private float temperature;
     public weatherResult ( String temp , float temp2 ) {
          this.zipcode = temp;
          this.temperature = temp2;
     public String getZipcode()
          return this.zipcode;
     public float getTemperature()
          return temperature;
     public void setZipcode(String temp)
          this.zipcode = temp;
     public void setTemperature(float temp)
          temperature = temp;
what is problem you guess.. ?

yes. service provider and consumer both are generated in weblogic.
the only thing i did is to revise the 'weather' web service example to use java
bean ( complex type ).
( the 'weather' web service example was in Document 'Programming WebLogic Web
services' )
thanks for quick response.
Sam Pullara <[email protected]> wrote:
Hmmm. Is this all being generated in WebLogic or are you using an external
service? I think you should contact support. We may not support this
in 6.1
and you might have to move to 7.0 for more complete web service support.
Sam
dolso wrote:
thanks for response.
I have checked WSDL and i found another mystery.
In my WSDL document that is generated in webLogic 6.1,
'weatherResult' element's schema is like below
<complexType name="weatherResult">
<attribute name="temperature" type="float" />
<attribute name="zipcode" type="string" />
</complexType>
as you can see, return element is supposed to be named 'weatherResult'and composed
of attributes
but responsed element is like below
<return xsi:type='bean:weatherResult' xmlns:bean='java:examples.webservices.rpc.weather'>
<temperature xsi:type='xsd:float'>-273.15</temperature>
<zipcode xsi:type='xsd:string'>SomeString</zipcode>
</return>
there are two strange things.
1. there is 'return' element .
2. 'temperature' and 'zipcode' are elements, not attributes.
where did 'return' element come from? and why response element is composedof
elements?
why it doesn't match up to WSDL document?
I think that this problem caused error to instantiate weatherResultBean.
do you know why?
thanks for reading.
Sam Pullara <[email protected]> wrote:
It looks to me like you are returning a temperature and a zipcode but
your
weather result is expecting a zipcode and a temperature so the constructor
is
being called with a (float, String) rather than a (String, float).
At
least
that is my guess. Maybe the two are listed in the other order in the
WSDL?
Sam
dolso wrote:
hello.
I'm testing web services in weblogic 6.1
I have created a web service and client. they exchange messages well.
their request and Response messages are like below
request Message------------------------------------------------------------------------------------
POST /weather/weatheruri HTTP/1.1
Content-length: 483
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:getTemp
xmlns:ns0='urn:Weather'
SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
<arg0 xsi:type='xsd:string'>SomeString</arg0>
</ns0:getTemp>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response Message-------------------------------------------------------------------------------------
HTTP/1.1 200 OK
Date: Mon, 08 Sep 2003 02:08:02 GMT
Server: WebLogic WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
Content-Type: text/xml; charset=UTF-8
Transfer-Encoding: Chunked
Connection: Close
0291
<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/1999/XMLSchema'>
<SOAP-ENV:Body>
<ns0:getTempResponse xmlns:ns0='urn:local' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
<return xsi:type='bean:weatherResult' xmlns:bean='java:examples.webservices.rpc.weather'
<temperature xsi:type='xsd:float'>-273.15</temperature>
<zipcode xsi:type='xsd:string'>SomeString</zipcode>
</return>
</ns0:getTempResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
0000
they seems to work fine.
but i'm getting error to decode response message on client side.
C:\... >java Client
java.lang.reflect.UndeclaredThrowableException: java.lang.InstantiationException
: examples.webservices.rpc.weather.weatherResult
at weblogic.soap.codec.SimpleSoapEncodingCodec.newInstance(SimpleSoapEnc
odingCodec.java:198)
at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncoding
Codec.java:178)
at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncoding
Codec.java:151)
at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:96)
at weblogic.soap.codec.Operation.read(Operation.java:100)
at weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:464)
at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:430)
at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
at weblogic.soap.wsdl.WebServiceInvocationHandler.invoke(WebServiceInvoc
ationHandler.java:31)
at $Proxy0.getTemp(Unknown Source)
at Client.main(Client.java:18)
Exception in thread "main" java.lang.NullPointerException
at Client.main(Client.java:23)
weatherResult bean is like below.
package examples.webservices.rpc.weather;
public class weatherResult implements java.io.Serializable{
     private     String zipcode;
     private float temperature;
     public weatherResult ( String temp , float temp2 ) {
          this.zipcode = temp;
          this.temperature = temp2;
     public String getZipcode()
          return this.zipcode;
     public float getTemperature()
          return temperature;
     public void setZipcode(String temp)
          this.zipcode = temp;
     public void setTemperature(float temp)
          temperature = temp;
what is problem you guess.. ?

Similar Messages

  • Start Primavera Web Logic Instances as Windows Services

    Hi,
    An external contractor has recently deployed P6 v8.1 in our environments and to our surprise currenlty Primavera Web Logic instances installed (p6, contract module, progress reporter and webservices) ara running as a java consoles in a logged user session. Our internal policies does not allow to have applications running under these conditions (all servers are required to be able to startup automatically and sessions expires) so we have requested Primavera consultants to set up Primavera-related WebLogic instances as a Windows Services. We have just received an answer form them arguing that this requirement can not be fullfilled because Oracle does not currently support Primavera-related Weblogic instances deployment as Windows Services on 64-bits platforms.
    Could someone provide his opinion about?
    Thanks

    I setup P6.2.1 Web on WebLogic running as a service in a 64 bit Windows environment successfully for a previous client. While it may not be officially supported by Oracle to configure it in this manner, I personally had no issues with it.
    I used the below article to guide me through setting up node manager. Hopefully this is of help to you.
    http://blogs.oracle.com/jamesbayer/entry/weblogic_nodemanager_quick_sta

  • What do these errors mean ? Web Logic

    I am attempting to start Web Logic Server, and Web Logic Server for my application installed on my machine. I get the following errors, completely new to web Logic so I don't know what they mean. But it seems to be a privelege issue related to the admin account. Please note that I have in no way changed any settings to my admin account recently, nor my password or anything. Everything was working fine for a week until yesterday, and I can't think of anything I have changed. Any input is appreciated. Highlighted the main errors in bold.
    When starting Web Logic Server for my application:
    <Nov 21, 2010 3:49:48 PM CST> <Notice> <Server> <BEA-002613> <Channel "DefaultSe
    cure[1]" is now listening on 127.0.0.1:7002 for protocols iiops, t3s, ldaps, htt
    ps.>
    <Nov 21, 2010 3:49:48 PM CST> <Notice> <Server> <BEA-002613> <Channel "DefaultSe
    cure" is now listening on 10.0.2.15:7002 for protocols iiops, t3s, ldaps, https.
    >
    <Nov 21, 2010 3:49:48 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default[1
    ]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 21, 2010 3:49:48 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default"
    is now listening on 10.0.2.15:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 21, 2010 3:49:48 PM CST> <Notice> <WebLogicServer> <BEA-000331> <Started We
    bLogic Admin Server "examplesServer" for domain "wl_server" running in Developme
    nt Mode>
    <Nov 21, 2010 3:49:50 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to RUNNING>
    <Nov 21, 2010 3:49:50 PM CST> <Notice> <WebLogicServer> <BEA-000360> <Server sta
    rted in RUNNING mode>
    <Nov 21, 2010 3:50:00 PM CST> <Error> <Security> <BEA-090513> <ServerIdentity fa
    iled validation, downgrading to anonymous.>
    <Nov 21, 2010 3:50:01 PM CST> <Error> <Security> <BEA-090513> <ServerIdentity fa
    iled validation, downgrading to anonymous.>
    <Nov 21, 2010 3:50:01 PM CST> <Error> <Security> <BEA-090513> <*ServerIdentity fa*
    iled validation, downgrading to anonymous.>
    <Nov 21, 2010 3:50:01 PM CST> <Warning> <RMI> <BEA-080003> <RuntimeException thr
    own by rmi server: weblogic.rmi.internal.AdminAccessOnlyServerRef@1f, implementa
    tion: 'weblogic.server.channels.RemoteChannelServiceImpl@2332930', oid: '31', im
    plementationClassName: 'weblogic.server.channels.RemoteChannelServiceImpl'
    java.lang.SecurityException: Method 'getAdministrationURL' cannot be invoked wi
    thout administrator access.
    java.lang.SecurityException: Method 'getAdministrationURL' cannot be invoked wit
    hout administrator access
    at weblogic.rmi.internal.AdminAccessOnlyServerRef.getWorkManager(AdminAc
    cessOnlyServerRef.java:29)
    at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:316
    at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:944
    at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:1138)
    at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:1020)
    Truncated. see log file for complete stacktrace
    when starting Web Logic Server for my application:
    <Nov 21, 2010 4:15:19 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to STARTING>
    <Nov 21, 2010 4:17:42 PM CST> <Error> <org.apache.beehive.netui.pageflow.interna
    l.AdapterManager> <BEA-000000> <ServletContainerAdapter manager not initialized
    correctly.>
    <Nov 21, 2010 4:17:46 PM CST> <Notice> <Log Management> <BEA-170027> <The Server
    has established connection with the Domain level Diagnostic Service successfull
    y.>
    <Nov 21, 2010 4:17:48 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to ADMIN>
    <Nov 21, 2010 4:17:48 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to RESUMING>
    <Nov 21, 2010 4:17:49 PM CST> <Emergency> <Security> <BEA-090087> <Server failed
    to bind to the configured Admin port. The port may already be used by another p
    rocess.>
    <Nov 21, 2010 4:17:49 PM CST> <Error> <Server> <BEA-002606> <Unable to create a
    server socket for listening on channel "Default[1]". The address 127.0.0.1 might
    be incorrect or another process is using port 7001: java.net.BindException: Add
    ress already in use: JVM_Bind.>
    <Nov 21, 2010 4:17:49 PM CST> <Critical> <WebLogicServer> <BEA-000362> <Server f
    ailed. Reason: Server failed to bind to any usable port. See preceeding log mess
    age for details.>
    <Nov 21, 2010 4:17:49 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to FAILED>
    <Nov 21, 2010 4:17:49 PM CST> <Error> <WebLogicServer> <BEA-000383> <A critical
    service failed. The server will shut itself down>
    <Nov 21, 2010 4:17:49 PM CST> <Error> <Server> <BEA-002606> <Unable to create a
    server socket for listening on channel "Default". The address 10.0.2.15 might be
    incorrect or another process is using port 7001: java.net.BindException: Addres
    s already in use: JVM_Bind.>
    <Nov 21, 2010 4:17:49 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to FORCE_SHUTTING_DOWN>

    The message weblogic.server.channels.RemoteChannelServiceImpl@2332930', oid: seems like there is some trouble
    with your OID.
    Another message in your loggng:
    Unable to create a server socket for listening on channel "Default". The address 10.0.2.15 might be incorrect or another process is using port 7001: java.net.BindException: Address already in use: JVM_Bind.
    Tells you there is already a process running on port 7001 (you can use the netstat -a command to check if the port 7001 is taken).

  • Separating obiee server and presentation services via Web Logic Server

    Hello,
    I'm attempting to Install OBIEE Server 11.1.1.3.0 on Linux (box A). I also am installing Web Logic Server 10.3.3 on Linux (box B) with the plan of deploying presentation services on WLS.
    I originally did the following:
    1. setup Repositoyr using RCU
    2. Installed OBIEE 11.1.1.3.0 using Enterprise Option.
    3. Installed WLS 10.3.3
    4. Began following this doc: http://www.obieetalk.com/deploying-obi-presentation-services-weblogic
    ---and the following questions arose as I was going through those steps:
    a. when I start up the Weblogic configuration wizard. I get to step 8 and it asks me to configure the Administration Server.
    --is that the Weblogic Server(box B)?
    b. It then asks me to configure Managed Servers.
    --That is the Weblogic Server, correct(box B)?
    I skipped Configuring Clusters.
    c. It then asks to Configure Machines.
    --I'm not sure what to put here.
    **I then proceeded to open up an SR and was given a "Here's the install guide" as a 'Solution Offered'.
    Oracle then came back with you need to do a "Software Only" install of OBIEE
    --On Box A or B? Because when I do that it asking where the WebLogic Server / Middleware Home is located.
    So, I'm asking
    1. do I do Enterprise, Simple or Software Only on Box A?
    2. Install WLS first, and then follow the document( http://www.obieetalk.com/deploying-obi-presentation-services-weblogic ) on how to deploy the Presentation Services?
    3. Which will lead me back to these questions:
    a. when I start up the Weblogic configuration wizard. I get to step 8 and it asks me to configure the Administration Server.
    --is that the Weblogic Server(box B)?
    b. It then asks me to configure Managed Servers.
    --That is the Weblogic Server, correct(box B)?
    I skipped Configuring Clusters.
    c. It then asks to Configure Machines.
    --I'm not sure what to put here.
    Any help is greatly appreciated. Thanks in advance!

    Hi,
    Is this the only error that you got in log files. Can you change the presentation catalog name and give it a try. Kill all the services. Start OC4J and then start the services.
    Regards,
    Sandeep

  • Dynamic Logical Port for Web Service Client

    Hi *!
    We want to use the same Web Service Client code with different Web Service instances running on different systems. So I need to configure the logical port (especially the URL of the endpoint) dynamically at runtime.
    Please give me a hint, how this is done.
    (we are using WebAS 6.40 SP7)...
    Thanks in advance,
         Frank

    Hi Frank,
    I hope you were able to solve your issue on you own in the meantime.
    I was looking for the answer to this question today. This was the only thread I found on SDN. Unfortunately, it did not contain an answer yet. I was able to figure out a way to set the endpoint address dynamically after searching help.sap.com and after examining the interfaces offered by the Stub (logical port in this case) classes.
    Here's an extract from my code:
    // Connect to JNDI context
    InitialContext ic = new InitialContext();
    // Get reference to web service proxy from JNDI context
    Z_MSC_GET_SCHEDULE_WSDService service =
         (Z_MSC_GET_SCHEDULE_WSDService) ic.lookup("wsclients/proxies/iot-online.de/msc~srv_ejb~proxy/de.iot_online.msc.proxy.ScheduleReaderProxy");
    // Get reference to logical port from web service proxy
    Z_MSC_GET_SCHEDULE_WSD logicalPort = service.getLogicalPort();
    // Set URL of web service Endpoint
    logicalPort._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://<FQDN>:8010/sap/bc/srt/rfc/sap/Z_MSC_GET_SCHEDULE_WSD?sap-client=100");
    This is explained on
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/113a1221337249e10000000a155369/frameset.htm
    You can also set the credentials (username / password) with the method _setProperty.
    Best regards
    Christian

  • Help Needed compile, deploy Web Service with Annotations on Web Logic 9.2

    Hi,
    I am new web logic and need some help in compiling, creating deployment file i.e. war, ear on Web Logic 9.2. I have the following sample web service with annotations code code but need help in compiling, creating deployment file (war,ear), creating proxy for testing etc. How to compile and create deployment files in WebLogic 9.2. Any help is really appreciated.
    package sample_ws;
    import java.rmi.RemoteException;
    import javax.jws.*;
    import javax.jws.soap.SOAPBinding;
    import org.w3c.dom.Document;
    @WebService
    @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
                 parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public class EchoService {
        public EchoService() {
        @WebMethod(action="echo")
        @WebResult(targetNamespace="http://exa.org", name="echoResult")
        public Document echo(@WebParam(targetNamespace = "http://exa.org",
                                       name = "echoMsg")
            Document doc) throws RemoteException{
            return doc;
    }Thanks

    I am using Oracle Jdeveloper as an IDE and created a war file and deployed on Oracle App. Server it works fine. Now if I deploy the same war on Web Logic it gives me the following error:
    java.lang.IllegalStateException: could not find schema type named {{http}//exa.org}>>echoResult
    Errors were encountered while performing this operation. Here is the code I have:
    package webservice2 ;
    import java.rmi.RemoteException;
    import javax.jws.*;
    import javax.jws.soap.SOAPBinding;
    import org.w3c.dom.Document;
    @WebService
    @SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
                 use = SOAPBinding.Use.LITERAL,
                 parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public class EchoService {
        public EchoService() {
        @WebMethod(action="echo")
        @WebResult(targetNamespace="http://exa.org", name="echoResult")
        public Document echo(@WebParam(targetNamespace = "http://exa.org",
                                       name = "echoMsg")
            Document doc) throws RemoteException{
            return doc;
    }And here is the wsdl file I have:
    <definitions
         name="EchoServiceService"
         targetNamespace="http://webservice2/"
         xmlns="http://schemas.xmlsoap.org/wsdl/"
         xmlns:tns="http://webservice2/"
         xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
         xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
         xmlns:ns1="http://exa.org"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        >
        <types>
            <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://exa.org" elementFormDefault="qualified"
                 xmlns:tns="http://exa.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
                <element name="echoMsg" nillable="true">
                    <complexType>
                        <sequence>
                            <any/>
                        </sequence>
                    </complexType>
                </element>
                <element name="echoResult" nillable="true">
                    <complexType>
                        <sequence>
                            <any/>
                        </sequence>
                    </complexType>
                </element>
            </schema>
        </types>
        <message name="EchoServicePortType_echo">
            <part name="echoMsg" element="ns1:echoMsg"/>
        </message>
        <message name="EchoServicePortType_echoResponse">
            <part name="echoResult" element="ns1:echoResult"/>
        </message>
        <portType name="EchoService">
            <operation name="echo">
                <input message="tns:EchoServicePortType_echo"/>
                <output message="tns:EchoServicePortType_echoResponse"/>
            </operation>
        </portType>
        <binding name="EchoServiceSoapHttp" type="tns:EchoService">
            <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
            <operation name="echo">
                <soap:operation soapAction="echo"/>
                <input>
                    <soap:body use="literal" parts="echoMsg"/>
                </input>
                <output>
                    <soap:body use="literal" parts="echoResult"/>
                </output>
            </operation>
        </binding>
        <service name="EchoServiceService">
            <port name="EchoServiceSoapHttpPort" binding="tns:EchoServiceSoapHttp">
                <soap:address location="http://localhost:8888/EnableSrc-WebService2-context-root/EchoServiceSoapHttpPort"/>
            </port>
        </service>
    </definitions>Any ideas what might be wrong.

  • Oracle web logic crashing other services on same server

    Hello,
    I have three servers in a cluster. Everything runs great. All of a sudden they can no longer speak to eachother on port 7001. But then they can again, and then they can't, then they can. QUICK hits. Also other services on the same boxes are taking hits as well including the ssh services that are running on all three. Again. Quick hits. Interestingly enough when the service does take a hit, it will continue to listen on port 22.....I haven't gotten a change to check bandwidth utilization, but those are gig switches, and I don't think these things are sending gigs worth of data to each other in bursts. Physical cabling is good between the servers and the switch. It's services on the box that are taking hits. When we restart web logic, everything is great for a few days and then this issue will start up again. Any input would be appreciated.
    Thanks,
    Dice.

    Hi Dice,
    I agree with Kalyan recommendation to assess the health of your cluster, so please do that.
    That being said, your comment regarding Weblogic restart is very important as well. Did you also assess the health of your JVM garbage collection & CPU during these spikes? Global VM collections e.g. Full GC can be quite intrusive and cause JVM to hang. When JVM hangs, Weblogic Server Socket port (associated with that VM) may not reachable depending how long GC runs, what policy you use, capacity of your physical server, # of physical cores etc.
    Please see of these QUICK hits that you refer actually correlate with Full GC cycles from one or more JVM's running from that host.
    Please also share the specification of your JVM (vendor e.g. HotSpot vs. IBM vm vs. Jrockit, Heap size, 32-bit vs. 64-bit etc.) and physical host (speed & # of cores, OS etc.)
    If system is fine for few days then start to degrade, then please look for some JVM leak patterns.... A JVM memory leak means OldGen/tenured space growing over time, so will GC elapsed time & frequency until you start to notice global impact & degradation.
    Please share any data that you have on the above so we can rule that out.
    If you are not using any monitoring at this point, I recommend at minimum that you enable verbose:gc so we can assess the health of your JVM's running from that host.
    Thanks.
    P-H
    http://javaeesupportpatterns.blogspot.com

  • Unable to access a Web service in Web logic

    Hi,
    We have deployed a web service in a Web logic 9.2 MP3. We have 1 admin server and 2 managed servers. The web service is deployed under 1 of the managed server. There are no errors thrown in the log files during starting of managed and admin server.
    The other systems are not able to connect to the web service.
    Also there is no entry or any error message in all the log files.
    Can anyone please guide us to overcome this issue?
    Thanks in advance.
    Regards,
    Ninad K

    I would advise you to open a support case.
    Some basic things, do you know if the web service is bound to the URL that you expect on server 1? Try connecting to your web service uri with ?WSDL at the end to see if the WSDL is returned.
    You can also try using tools like TCPMon to see what's getting passed over the wire.

  • Web services - web logic 10.3.3.0 - spring

    I have an application which is implemented with spring and uses web services.
    I am trying to deploy it on Web Logic 10.3.3.0 but I get the error:
    :com.sun.xml.bind.v2.runtime.IllegalAnnotationsException:6 counts of IllegalAnnotationExceptions
    I deploy the same application(war file) on web logic 10.3.0.0 and it works fine.
    I can not figure it out what is so different in the new version of the web logic.
    I use in the applicationContext.xml of the Spring:
    <wss:binding url="/webService/documentB" >
    <wss:service>
    <ws:service bean="#webService.documentB" impl="moi.DocumentsService" />
    </wss:service>
    </wss:binding>
    <!-- simplest definition only needs the class name -->
    <bean id="webService.documentB" class="moi.DocumentsService">
    <property name="publicDocumentDao" ref="publicDocumentDao"></property>
    </bean>
    In web.xml file:
    <!-- JAX-WS RI dispatcher servlet -->
    <servlet>
    <servlet-name>jaxws-servlet</servlet-name>
    <servlet-class>com.sun.xml.ws.transport.http.servlet.WSSpringServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>jaxws-servlet</servlet-name>
    <url-pattern>/webService/*</url-pattern>
    </servlet-mapping>
    DocumentsService.java is:
    @WebService
    public class DocumentsService {
    private PublicDocumentDao mPublicDocumentDao;
    // Injected with spring
    public void setPublicDocumentDao(PublicDocumentDao aDao) {
    mPublicDocumentDao = aDao;
    //constructor
    public DocumentsService() {
    @WebMethod
    public DocumentInfoResult requestDocumentInfo(@WebParam(name = "documentInfoRequest")
    DocumentInfoRequest aDocumentInfoRequest) {
    return mDocument;
    I am using Spring 2.0 , Hibernate 3, Struts 1.
    The log file of the weblogic 10.3.3.0 is:
    weblogic.application.ModuleException: :com.sun.xml.bind.v2.runtime.IllegalAnnotationsException:6 counts of IllegalAnnotationExceptions
    at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:448)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:297)
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
    at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
    at com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:73)
    at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:159)
    at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:151)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:151)
    at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:265)
    at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:363)
    at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:202)
    at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:514)
    at org.jvnet.jax_ws_commons.spring.SpringService.getObject(SpringService.java:333)
    at org.jvnet.jax_ws_commons.spring.SpringService.getObject(SpringService.java:45)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectFromFactoryBean(AbstractBeanFactory.java:1246)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:221)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
    at com.oracle.weblogic.wsee.wrapper.org.springframework.web.context.ContextLoaderListener.contextInitialized(Unknown Source)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1863)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
    at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: user5165836 on 14-Jul-2011 05:41

    Hi,
    I solved the problem with adding an extra jar file to the project:
    com.springsource.org.jvnet.jax_ws_commons.spring-1.8.0.jar.

  • Use case for describing a web service

    Dear all,
    I have a fundamental question for describing a web service.
    An analyst will first write (1) a use case for describing the web service and (2) wsdl and xsd files for describing the web service.
    As a developer, I would say that artifact (2) is enough. As an analyst, I would still need to document the requirement in the format of use case specification. However, it is not clear for me what should be put in this use case specification and what is the added value of such a use case.
    Have you any sample example of this kind of use case in order to describe a web service?
    Thanks in advance.
    Pengyou

    wpafbuser1 wrote:
    First, don't post twice. I'd rather see you bump a post then repost the same question.
    Have you any sample example of this kind of use case in order to describe a web service?First, searching Google will show you millions of use cases you can use as examples. Second, why would you think writing a use case for a Web Service would be any different than any other use case?Sorry for posting twice. I thought the first one failed due to a system error but I was wrong.
    From millions of use case I can not find a "good" one.
    I have in fact two conceptual questions:
    1. I have not much to say about the flow of events. It is simply a request and a response. This is much simpler than a "normal" use case. Am I right?
    2. However, I don't know where to put the description of business logic: 2.1 the data sets to be put in the request and response; 2.2 the business logic to construct the response from the request.
    I would appreciate any hint or discussion.
    Pengyou

  • Issue in calling web service from SoapUI 4.0.0 to Oracle web logic server10

    Hi All,
    I am trying to call a web service from soapUI 4.0.0 to Oracle Web logic server 10.3 in which primavera p6 war file is deployed..
    getting an error::*this class does not support saaj 1.3*
    setting the following system property in the Weblogic startup script:
    -Djavax.xml.soap.MessageFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl does not work..
    setting the following system property in the Weblogic startup script:
    -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl
    even does not work..
    how to resolve this error,plz help me its urgent..

    Have you tried submitting your help request on the SmartBear soapUI forum?
    http://www.eviware.com/forum/viewforum.php?f=5
    Or if a soapUI Pro user:
    http://www.eviware.com/forum/viewforum.php?f=2
    Best,
    Alex

  • Problem in using web logic server

    I have following problems in using the weblogic server 8.1.2
    1. Under which folder jsp & html files should be stored?
    2. When I run the weblogic server using web logic work shop,
    I get the following error message.
         "Low virtual memory".
    My pc is running on Windows 2000 Professional.
    Please give me solution for both of my problems.
    My thanks in advance.

    1) somedirectory/yourwebapp/
    2) get more memory , 1Gig is a good start

  • Can I alter soapAddress using script before making a web service connection

    Originally I set up a data connection on Data View using a local wsdl file.
    I found following codes on the XML source:
    <connectionSet xmlns="http://www.xfa.org/schema/xfa-connection-set/2.1/">
       <?originalXFAVersion http://www.xfa.org/schema/xfa-connection-set/2.1/?>
       <wsdlConnection name="WebServiceDC" dataDescription="WebServiceDCgetAddressXMLDD">
          <soapAddress>https://myURL/myWebServiceFunction</soapAddress>
          <wsdlAddress>.\myWebServiceFunction.wsdl</wsdlAddress>
          <soapAction/>
          <operation input="getAddressXMLRequest" output="getAddressXMLResponse">getAddressXML</operation>
          <?templateDesigner fileDigest shaHash="uKcwzAn9YOsLHWypIz9ycuoeBPE="?></wsdlConnection>
    </connectionSet>
    Does it mean that if I use the form on another machine, I need to place the same file myWebServiceFunction.wsdl on the exact location of the form as well?
    Another question:
    How about I set up a data connection on Data View using a wsdl file from web.
    Then is it possible to change the <soapAddress> from script to alter the connection before I issue:
    xfa.connectionSet.WebServiceDC.execute(false);
    I need to do this because the wsdl's soapAddress point to another endpoint that I need to change.
    Or should I write script at all to make the data connection?
    Rgds.

    Just find from the forum that it cannot be altered but need to be cloned first:
    var oCS = xfa.connectionSet.WebServiceDC.clone(1);
    oCS.soapAddress.value = "http://pgdell:8080/soap/services/WebServiceTest";
    oCS.execute(0);
    But I have a question, how can I access the data returned from the cloned connection oCS?
    Originally in the postExecute event of WSResponsePreProc :
    var rootXml = null;
    var soapFault = null;
    if (xfa.event.soapFaultCode)
         soapFault = {code:xfa.event.soapFaultCode, message:xfa.event.soapFaultString};
    else
         rootXml = xfa.datasets.connectionData.WebServiceDC.Body;               <=========  how can I refer to the cloned oCS  ??
    preProcessor.processResponse(rootXml, soapFault);
    Rgds.

  • Using a control in a web service

    Hi,
    I've got a problem where I using a WebServiceControl in a web service is giving me errors when I build.
    The error is:
    Error with publish task 'WebServicesProjectBuildTask'.
    Web services in payment have errors
    Web services with errors cannot be compiled.
    Error(s) occured during publish assembly. No modules will be published.
    I have a web service I've created called PaymentWebService. This web service uses a web service control to call another web service. It seemed to be working fine until I try and use the web service control inside the PaymentWebService. If I comment out the web service control it deploys fine.
    The error above is all it gives me, and I've checked through the code quite a few times and there are no build errors or anything like that.
    Does anyone have any idea about this? It's driving me nuts.
    Thanks,
    Daniel

    Hi,
    Do you have errors in the weblogic log file?
    Best regards,
    Stéphanie

  • Can I use Web Dynpro to provide Web Services

    I know I can use Adative web services model to consume existing web services.  But I have not seen any example to use Web Dynpro as the web service provider.  Can this be done?  If yes, how?
    Thanks.

    Hi,
    WebDynPro Java/ABAP are primarily User Interface technologies. Webservices are faceless (without UI ) components that provide certain functionality. Using UI technologies like WebDynPro Java/ABAP etc, we can build a face( UI ) to the webservices.
    DnyPro itself means a screen & WebDynPro is for building web based applciations.
    Hope this resolves your question.
    Well, if you still want to use it as provider & if you have an existing web-service, the way to do it is, Right click on your WebDynPro ABAP component & select CREATE->Service Call. Build a Custom Controller or use the Component Controller to get the service using service type = Webservice proxy for your webservice. You can use this Component as a Used component in any other webdynpro components & use this to access webservices.
    Thanks,
    Phani
    Edited by: Phani Rajesh Mullapudi on Oct 8, 2009 10:41 PM

Maybe you are looking for

  • Creating a  Calendar from SQL Query

    Hi -- I'm trying to create a calendar based on a sql query, but I need to be able to select the unique id in order to pass it to a page that will display the event details. It looks like I'm not able to select a "hidden" value in my sql query, but am

  • Jtree change childs icons

    Hi All, im wondering if someone try that. i have a tree that include a parent and child/s. when i selected the father all the child's should be selected too. i was trying : public void valueChanged(TreeSelectionEvent arg0) {                     // TO

  • JTextArea to String

    I'm writing a program that is essentially a basic text editor. I am trying to pass the text from the JTextArea to a seperate class which will be a "Find Text" dialog. What is the best way to go about doing this? Thanks in advance for any help!

  • Keeping current selection in select box

    hi, I have several select boxes which get posted on the same page, but they never keep the values entered, how can I once submitted show the previous selection? The same goes for the radio buttons.

  • Can't import movies from photobooth into imovie

    In iMovie 11 (v9.0.4), our network users are unable to import movies from the isight camera. (File, Import from Camera).  As soon as you click on "capture", then use the default event name, you get an error: "You may not have permissions to write to