Axis 2 Webservice Properties

Inside a webservice of mine i would like to store some properties in a properties file, though i'm not sure how to do this with an .aar file.
For example my webservice has four parameters that really shouldnt be hard coded....
     String strHost = "skregi488129";
     String strDomain = "agr.gc.ca";
     String strUser = "zimmers";
     String strPassword = "hanky5";

Inside a webservice of mine i would like to store some properties in a properties fileClear.
though i'm not sure how to do this with an .aar file.Open it with Winzip and surprise yourself.
For example my webservice has four parameters that really shouldnt be hard coded....
     String strHost = "skregi488129";
     String strDomain = "agr.gc.ca";
     String strUser = "zimmers";
     String strPassword = "hanky5";1) Create a plain vanilla text file and call it for example "user.properties" or so. 2) Put it in the classpath of the webservice or the classpath of the application server which runs this webservice, or add its path to the classpath of the webservice or the application server. 3) Define the properties as key=value pairs in each line. 4) Open it in your Java code using ClassLoader#getResourceAsStream() and load it as java.util.Properties object using Properties#load().

Similar Messages

  • Axis webservice through OSB

    I have a web service which developed using axis and deployed in weblogic.
    I have configured in OSB to access this web service through OSB.
    My endpoint is OSB server URL which points axis webservice deployed in weblogic.
    I have user id and [assword set through OSB.
    *My Question:*
    When i access this OSB end point from a Java Client Application, I need to give provide userid/password. How do I give?
    I tried below and didnt work and got below error messages also.
                 MyWebServiceStub stub = new MyWebServiceStub(endpoint);
                org.apache.axis2.client.ServiceClient sc = stub._getServiceClient();
                org.apache.axis2.client.Options options = sc.getOptions();
                options.setUserName(user);
                options.setPassword(password);
    The above code gives me below error
    INFO: Unable to sendViaPost to url[endpoint]
    org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
         at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
         at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
    Can anyone help me find out? How do we access?

    Looks like the URL is wrong.. ( 404 error). Make sure the url is pointing to OSB managed server port and not to the admin server.. sbconsole runs on admin server but the port you specifiy in the URL used to access OSB from the webservice client should point to the osb managed servers...

  • NullPointerException while sending signed XML via SOAP to Axis webservice

    Hello,
    I was wondering if it was possible to change the behavior of Apache XML Security libraries and delete "ds:" namespaces while digitally signing XML files.
    We are trying to send signed XML to a local chilean IRS, as a part of an automatic autentication process. The steps to authenticate are quite straightforward and involve:
    1. Obtain from webservice 1 a "seed", which is a random number representing temporal session opened
    2. Sign this seed (in XML format) using our certificate
    3. Send signed XML to another webservice 2, which should validate it and open a permanent session, returning a "token", which is an alphanumeric string
    What happens is that steps 1 and 2 are completed without problems, while we cannot pass step 3. The webservice (as far I know mounted on Apache Axis) fails with ugly error "NullPointerException".
    The IRS says that our signed XML, although valid, seems strange to them, as it contains those "ds:" added by Apache Xml Security libraries while signing the file.
    So here comes the question: is it possible to obtain valid signed XML without those "ds:"? What other reasons may result in that NullPointerException error?
    We use simple Java class and VeriSign certificate stored in Java keystore to sign XML files, and Apache Xml Security 1.2.0 jars.
    For any clues that could help us thank you in advance.
    Jack

    Hi,
    Few months ago we had also problems with "locked user" in XI, in our case XIAPPLUSER was sometimes (b)locked.
    Perhaps note:
    721548 Changing the passwords of the XI 3.0 service users
    will help you.
    We removed and entered the service users again, with the password in CAPITALS and language blank.
    After that our problem was solved, I hope yours too.
    Regards
    Jack

  • Invalid Provider URL deploying axis webservice application on OC4J 10.1.3

    Hi,
    I have an enterprise webservice application using axis running fine with OC4J 9.0.4. I tried to deploy it in OC4J 10.1.3 and it gives ConfigurationException inside axis. I tried both axis 1.3 and 1.4 and still has the same issue. Axis is catching the exception and throwing it out as a runtime exception: Invalid Provider URL. I tried to google it, but didn't found much help. Did anyone had similar problem like this.
    Thanks in Advance,
    Chandu

    Chandu,
    Perhaps you could post the entire error message and stack trace you are getting, as well as the part of your code that is causing the error? Are you using JDK 1.4 or JDK 1.5?
    Good Luck,
    Avi.

  • Issue with Axis WebService.

    Hi,
    I have written a web service, which accepts two strings as parameter(echoService method). And created WSDD file for the same and it works fine. Then I created a webservice which supports attachments, this code also works fine. When I merge this two WebServices and try to invoke "echoService" from client code, I am getting the following error.
    java.io.IOException: Type {ElementService}DataHandler is referenced but not defined.I assume, its the problem with the wsdd file "typeMapping". Please let me know if I am right or wrong? Also let me know the solution for the same.
    Regards,
    Vaishakh
    Code is below:
    ElementService.java (Web Service Code)
    public class ElementService {
        public String echoService(String command, String data) {
            System.out.println("Echo Service [" + command + "] Data [" + Data + "]");      
            return "Success;
        public Object getDimeData(DataHandler dh) throws InputValidationException, AttachmentServiceException {
            MessageContext msgContext = MessageContext.getCurrentContext();
            Message rspmsg = msgContext.getResponseMessage();
            log.info("org.apache.axis.attachments.Attachments.SEND_TYPE_DIME : " + org.apache.axis.attachments.Attachments.SEND_TYPE_DIME);
            int inputAttachmentType = rspmsg.getAttachmentsImpl().getSendType();
            log.info("inputAttachmentType : " + inputAttachmentType);
            if (inputAttachmentType != Attachments.SEND_TYPE_DIME) {
                String failMsg = "Attachment passed is not a DIME attachment, please check.";
                throw new InputValidationException("Invalid input data error : " + failMsg);
            String inputStr = getInputString(dh);
            //Do some process with the input String and construct an output String.
            //Since the processing is out of context for our disucussion,
            //just an output xml String from a file is returned.
            String result = null;
            try {
                result = "Successfully Read the input file";
            } catch (IOException e) {
                String errorMsg = "Error occured while sending the output xml in DIME format.";
                log.error(errorMsg, e);
                throw new AttachmentServiceException(errorMsg, e);
            log.info("setting the DIME type of attachment as the sender sends it as DIME.");
            rspmsg.getAttachmentsImpl().setSendType(org.apache.axis.attachments.Attachments.SEND_TYPE_DIME);
            ByteArrayDataSource dataSource = new ByteArrayDataSource(result, "UTF-8");
            dh = new DataHandler(dataSource);
            return dh;
    {code}
    deploy.wsdd file
    {code}
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"  xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
                xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"   xmlns:apachesoap="http://xml.apache.org/xml-soap"
                xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:ns1="ElementService">
        <service name="ElementService" provider="java:RPC">
            <parameter name="alias" value="ElementService"/>
            <parameter name="className" value="com.ws.ElementService"/>
            <parameter name="allowedMethods" value="*"/>
            <parameter name="scope" value="session"/>
            <operation name="getDimeData" returnQName="returnqname" returnType="ns1:DataHandler">
                <parameter name="dh" type="ns1:DataHandler"/>
            </operation>
            <typeMapping deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
                         languageSpecificType="java:javax.activation.DataHandler" qname="ns1:DataHandler"
                         serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
                         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
        </service>
    </deployment>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    this isn't an axis forum, it is a java forum. you're probably better off asking this question in an axis specific forum.
    that said, unless you are required to use axis for this project, i'd look into using JAX-WS. it is integrated into the jdk and much simpler (IMO) to use. plus, you'll get better help in these forums if you are using it.

  • SAP XI client calling axis webservice

    Hallo,
    i have the problem, that the sent xml-message from SAP XI will not be processed from my tomcat-webserver. In SOAP-Monitor the Status stays "active", allthough the requestdata doesn´t seem to be dirty. When i try it with my Java-Client, i have no problems. SAP XI is sending data of type String[] and String[][].
    I still tried out all kinds of webservice types(rpc,document,wrapped).
    So, has anybody a hint?
    Thanks!

    Cien dobre Andrzej,
    thank you for your answer. here is zhe way i did it:
    1. Implement busines method foo(String a[],String b[][],String c[][])
    2. generate wsdl with java2wsdl, several times with different styles
    3. generate classes with wsdl2java
    4. Deploy on tomcat
    Then i sent the wsdl to our XI-Specialist and he did all the work on SAP-side.
    When he send a request, i see the following on my SOAPMonitor:
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelop/'>
    <SOAP:Header/>
    <SOAP:Body>
      <ns0:performSAPBestellanstossRequest xmlns:ns0='bestellanstoss'>
        <kopfdaten>
             <item>4500190535</item>
             <item>0000554132</item>
             <item>Wilhelm, Andreas</item>
             <item>2216</item>
        </kopfdaten>
        <positionen>
             <item>
                  <item>00010</item>
             </item>
        </positionen>
        <stueckliste>
             <item>
                  <item>00010</item>
             </item>
         </stueckliste>
       </ns0:performSAPBestellanstossRequest>
    </SOAP:Body>  
    </SOAP:Envelope>
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelop/'>
    <SOAP:Header/>
    <SOAP:Body>
      <ns0:performSAPBestellanstossRequest xmlns:ns0='bestellanstoss'>
        <a>
             <item>4500190535</item>
             <item>0000554132</item>
             <item>Wilhelm, Andreas</item>
             <item>2216</item>
        </a>
        <b>
             <item>
                  <item>00010</item>
             </item>
        </b>
        <c>
             <item>
                  <item>00010</item>
             </item>
         </c>
       </ns0:performSAPBestellanstossRequest>
    </SOAP:Body>  
    </SOAP:Envelope>
    This request will not be processed:
    When i use my generated AXIS-Client i see the following request data, that will be processed:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelop/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
        <nsl:performSAPBestellanstoss soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:nsl="bestellanstoss">
          <a xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[2]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
             <item xsi:type="xsd:string">xxxxxx</item>
             <item xsi:type="xsd:string">xxxxxx</item>
          </a>
          <b xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[][1]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
             <item xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[][2]">
                  <item xsi:type="xsd:string">xxxxxx</item>
                  <item xsi:type="xsd:string">xxxxxx</item>
             </item>
          </b>     
          <c xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[][1]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
             <item xsi:type="soapenc:Array" soapenc:arrayType="xsd:anyType[][2]">
                  <item xsi:type="xsd:string">xxxxxx</item>
                  <item xsi:type="xsd:string">xxxxxx</item>
             </item>
          </c>
        </nsl:performSAPBestellanstoss>    
      </soapenv:Body>   
    </soapenv:Envelope>
    So maybe you can give me more hints
    Regards Ralf

  • "net use" in an axis webservice

    Hi,
    I've written a webservice which, amongst other things, maps a shared folder on its local disk drive to an unused drive. Heres the neccessary code, but the problem isn't here:
    Process proc = execAtCmdPrompt("net use "
    +env.getMapDrive()+ ": " +p.getProperty("thisMachine")+
    "\\" +env.getFolderName()+" /persistent:yes",0);
    BufferedReader bR =
    new BufferedReader(new InputStreamReader(proc.getInputStream()));
    String read = null;
    while( !(read=bR.readLine()).contains("The command completed successfully.")){
    System.out.println(read);
    System.out.println(read);
    bR.close();
    private static Process execAtCmdPrompt(String exec, int wait)throws IOException{
    if(wait<1000)wait = 1000;
    Process p = Runtime.getRuntime().exec("cmd.exe /k " +exec);
    try{
    //Let it execute
    Thread.sleep(wait);
    }catch(InterruptedException iE){
    iE.printStackTrace();
    return p;
    return p;
    }This code runs fine in eclipse runing its own tomcat server as does the rest of my webservice. However, if I deploy it in its own standalone tomcat server running axis, it wont map the drive.
    If I do a net use from the command prompt it tells me the drive status is unavailable. Also, I have already setup the logon details in the server with this windows user and set it to logon as a service.
    All help is greatly appreciated. Any ideas?
    Edited by: E30s50 on Nov 26, 2008 7:49 AM
    Edited by: E30s50 on Nov 26, 2008 7:51 AM

    1.Actually when you developing a Portal component you are actually developing a UserControl (ascx file).
    So, maybe what you are really wish to know is: Can I run a ascx files (User Controls) within an iView or PortalComponent?
    So the answer is <b>YES</b>, the only different between consuming ascx files (UserControls) in ASP .NET Pages to consuming them in PortalComponent is that we don’t support the dragging of the ascx file to the consumer – Portal Component designer. But you can overcome this limitation if you add the necessary code to the html source.
    for example if you have two ascx files in one PortalApplication (PortalComponent1.ascx and PortalComponent2.ascx) and you want to consume as UserControl you need to add the following code to  PortalComponent1.ascx:
    <%@ Register TagPrefix="uc1" TagName=" PortalComponent2" Src=" PortalComponent2.ascx" %>
    And
    <uc1: PortalComponent2id="MyUserControl1" runat="server"></uc1: PortalComponent2>
    under the
    <body>
    tag.
    2.What do you mean – “…tell the ASP.NET WebControls to behave like SAP Netweaver Controls..” ?
    If you did mean that you want to have the same look and feel and behavior like the SAP controls – So the answer that you can’t.
    3.Read this - <u>https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/sap netweaver .net controls vs. asp.net controls.pdf</u>
    Regards,
    Yehuda

  • Help send file with axis webservice to another langague client

    Please anyone know if i can send any file from any client (in any language) to my webservice (axis)?//
    sorry my english..
    tks

    Hi,
    From my experience, we can consider upload file to azure storage blob when click send button, after this process end, we send message and let other person to download this file form azure storage blob. Refer to
    http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/ for more details about upload/download files. Hope this helps.
    Best Regards,
    Jambor
    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.

  • Axis webservice, wsdl and primitif type

    Environnement :
    JDK1.6, axis2-1.3, tomcat-6
    i have a POJO service called ProjectService wich return a ProjectVO value object, this object contains an item "themeId" of type Long (object not primitif type), because this item can be null.
    I use the eclipse wizard (bottom-up methode) to generate the Webservice, i ended with "server side" code, and "client side" code (stub.....) the stub obtained is called ProjectServiceStub wich contains an inner class ProjectVO, but this time
    the getThemeId() return a long primitif type and not a Long object.
    in the other side the eclipse-axis wizard generate a wsdl, the piece of information regarding themeId, is as follwoing
    <xs:element minOccurs="0" name="themeId" nillable="true" type="xs:long"/>
    ...the probleme is, when the POJO service return a NULL for the themeId item, the Webservice return a negatif big number, because int the ProjectServiceStub.ProjectVO object, the themeId is long and not Long.
    how can i fixe this probleme
    thanks for your help

    That wasnt really the question.
    Obviously Ive read the tutorial.
    Built my own DII client and webservice.
    Now im asking questions not covered by the tutorial.
    The question was how to reference complex java types.
    What are all the different types that can be included in a WSDL document. So far ive used String, Boolean. what else. Surely there must be a document that points these out!
    The answer to the other part of the question was quite simple.
    In the WSDL document, if a method takes multiple input paramters, the WSDL lists them by number.
    ie string 1, string 2 ect. as shown in previous listing.
    call.addParameter("String_1", QNAME_TYPE_STRING,
    ParameterMode.IN);
    So here you just add the additional parameters changing string 1 for the required parameter.

  • ClassCastException when invoking an Axis WebService

    Hi all
    I have an Axis (1.4.2) web service and a Tomcat 4 server.
    From time to time, when calling the web method, an exception occurs as follows:
    *method public java.lang.String[] MyClass.UPDATE(java.lang.String[],java.lang.String[]) with arguments [Ljava.lang.String;,[Ljava.lang.String;.  The arguments do not match the signature.*
    *java.lang.IllegalArgumentException: java.lang.ClassCastException@b5b09d*
    Can anyone give me a hint on this?
    I believe java.lang.String[] and [Ljava.lang.String are equivalent (and the parameters being passed are of correct type String[]).. So, how can the above error be happening since the argument types and those stated in the call are the exact same?!
    And mostly, why does this error only happens from time to time? After a restart to the server I no longer get this exception.. til next time.
    Thanks in advance!

    Hi,
    Just in case someone runs into the same problem, I live here my solution:
    In may case the problem was the wsdl definition. I developed the web service in java and generated the wsdl with Maven. Automatically it generates the wsdl like this (I just copy the last section):
    <wsdl:service name="tso-ws">
    <wsdl:port name="tso-wsHttpSoap11Endpoint" binding="ns:tso-wsSoap11Binding">
    <soap:address location="http://localhost:8080/axis2/services/tso-ws"/>
    </wsdl:port>
    <wsdl:port name="tso-wsHttpSoap12Endpoint" binding="ns:tso-wsSoap12Binding">
    <soap12:address location="http://localhost:8080/axis2/services/tso-ws"/>
    </wsdl:port>
    <wsdl:port name="tso-wsHttpEndpoint" binding="ns:tso-wsHttpBinding">
    <http:address location="http://localhost:8080/axis2/services/tso-ws"/>
    </wsdl:port>
    </wsdl:service>
    The problem was the <wsdl:service name="tso-ws"> section. There were 3 port definitions with 3 different bindings but all of them have the same service location. So In the BPEL process I created the partner link using the service location.
    I guess BPEL was using the http binding, so I deleted two of the por definitions and just left this in the <wsdl:service name="tso-ws"> section of the wsdl
    <wsdl:service name="tso-ws">
    <wsdl:port name="tso-wsHttpSoap12Endpoint" binding="ns:tso-wsSoap12Binding">
    <soap12:address location="http://localhost:8080/axis2/services/tso-ws"/>
    </wsdl:port>
    By doing this, it works. I read in some forums that BPEL doesn't work with the http_post protocol so that's why I deleted that definition. And someone told me that it uses soap12 so that's why I deleted that definition also.
    That's the way I solved it. Hope this helps.
    Regards,
    Zaloa

  • Problem regarding axis webservices

    In the above exception AxisTest is my project name and HelloService is the service class.
    HelloService.class file is in the C:\AxisTest/build/web/WEB-INF/classes/test folder.
    when i build the following exception occures.i've also added activation.jar in both my classpath and project library folder.
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
    Java2WSDL C:\AxisTest/build/web/WEB-INF/classes/test.HelloService
    java.lang.ClassNotFoundException: C:\AxisTest/build/web/WEB-INF/classes/test.HelloService
    at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1166)
    at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1107)
    at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1197)
    at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:990)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
    at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
    at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2079)
    at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:188)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
    C:\AxisTest\build.xml:102: Error while running org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask

    i've added the activation.jar and mail.jar in axis lib folder and validate the axis with happyaxis.jsp and there is no error pointouted in this page.
    i again build my project but same error again.
    i'm trying to run the example at this site.
    http://coding.mu/archives/2005/08/26/using-apache-axis-in-netbeans-50/
    I've written only the server side. i've added the axis lib alongwith activation.jar and mail.jar in my project of server side.
    please visit this site and suggest me a solution.
    Thanks.

  • Invoking activemq through axis webservice

    Hi,
    I have written a java code to invoke activemq remotely, its working fine.
    But when I converted the java code to a webservice and when I tried to invoke the activemq through this webservice, it is not at ll invoking the
    activemq...........I dont know where exactly I am going wrong??????can any one help me please.................!!
    Regards,
    S.Vishal

    Looks like the URL is wrong.. ( 404 error). Make sure the url is pointing to OSB managed server port and not to the admin server.. sbconsole runs on admin server but the port you specifiy in the URL used to access OSB from the webservice client should point to the osb managed servers...

  • Axis WebServices

    I need to write a Java Web Service using Axis which send a file as DIme Attachment.. and the file has to be read by .Net client
    please help in this problem

    Double-post:
    http://forum.java.sun.com/thread.jspa?threadID=685261
    Kaj

  • Hiding some of the webservices in axis

    Hi,
    I am using axis webservices with my project. Not my requirement is to hide some of the webservices in axis. It means when i use the url: http:\\localhost:8080\axis, only certain webservices are to be displayed. Can any one help in this regard.
    thanks in advance
    ravi

    Hi Sai,
    You can go the web item properties (chart) and you can avoid the column in 'Set the sample data' of Texts and Data Selection step(2) of Chart wizard you can check out the 'Category' option to increase of decrease you visibility of the columns.
    Also check with the series option in the same wizard.
    Hope this will suffice your requirement.
    Regards,
    Madhu

  • Error while invoking a webservice using Axis deployed in  tomacat from Bpel

    Hi,
    I am trying to invoke a Axis webservice(from Java class to WSDL- bottom up java bean webservice approach) developed in Exclipse IDE, deployed in Tomcat.
    When i am trying to invoke the service, from Bpel from Jdeveloper it is throwing error as such :
    Invoke_1 (faulted)
    [2009/05/22 14:32:18] Faulted while invoking operation "storeLoanData" on provider "LoanDataPersist".less
    -<messages>
    -<input>
    -<Invoke_1_storeLoanData_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="p_request">
    -<p_request xmlns="" xmlns:def="http://dtos.demo.com" xsi:type="def:LoanDataPersistRequest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <customerName>wew
    </customerName>
    <netIncome>12
    </netIncome>
    <loanAmount>12
    </loanAmount>
    <realEstateAddress>wew
    </realEstateAddress>
    <customerID/>
    </p_request>
    </part>
    </Invoke_1_storeLoanData_InputVariable>
    </input>
    -<fault>
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>exception on JaxRpc invoke: trailing block elements must have an id attribute
    </summary>
    </part>
    </remoteFault>
    </fault>
    </messages>
    I may add that, the WSDL generated is using "soap:enc:array ", rpc style.
    Can anyone tell me the reason and suggest .

    Hi Marc,
    Thanks for the guidancer. But sir, i am unable to detect at which place i have to do the required changes.I found p_request as a parameter in the method only in the interface only.
    As bcos ultimately , i am generating the tomcat /axis web service (WSDL) from the java class, which is using 2 Request and response java bean, in which they are doing someing like this:
    private static org.apache.axis.description.TypeDesc typeDesc =
    new org.apache.axis.description.TypeDesc(LoanDataPersistRequest.class, true);
    static {
    typeDesc.setXmlType(new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistRequest"));
    org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
    elemField.setFieldName("customerName");
    elemField.setXmlName(new javax.xml.namespace.QName("", "customerName"));
    elemField.setXmlType(new javax.xml.namespace.QName("", "string"));
    elemField.setNillable(true);
    etc etc...................}
    And second thing is when the WSDL is generated, from that the stubs and skeletons is generated to test the service.
    There in the Stub i found out "p_request" in this place:
    private static void _initOperationDesc1(){
    org.apache.axis.description.OperationDesc oper;
    org.apache.axis.description.ParameterDesc param;
    oper = new org.apache.axis.description.OperationDesc();
    oper.setName("storeLoanData");
    param = new org.apache.axis.description.ParameterDesc(*new javax.xml.namespace.QName("", "p_request")*, org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistRequest"), com.demo.dtos.LoanDataPersistRequest.class, false, false);
    oper.addParameter(param);
    oper.setReturnType(new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistResponse"));
    oper.setReturnClass(com.demo.dtos.LoanDataPersistResponse.class);
    oper.setReturnQName(new javax.xml.namespace.QName("", "storeLoanDataReturn"));
    oper.setStyle(org.apache.axis.constants.Style.RPC);
    oper.setUse(org.apache.axis.constants.Use.ENCODED);
    _operations[0] = oper;
    And in skeleton :
    static {
    org.apache.axis.description.OperationDesc _oper;
    org.apache.axis.description.FaultDesc _fault;
    org.apache.axis.description.ParameterDesc [] _params;
    _params = new org.apache.axis.description.ParameterDesc [] {
    new org.apache.axis.description.ParameterDesc(*new javax.xml.namespace.QName("", "p_request")*, org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistRequest"), com.demo.dtos.LoanDataPersistRequest.class, false, false),
    oper = new org.apache.axis.description.OperationDesc("storeLoanData", params, new javax.xml.namespace.QName("", "storeLoanDataReturn"));
    _oper.setReturnType(new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistResponse"));
    _oper.setElementQName(new javax.xml.namespace.QName("urn:com.demo.service", "storeLoanData"));
    _oper.setSoapAction("");
    myOperationsList.add(oper);
    if (_myOperations.get("storeLoanData") == null) {
    _myOperations.put("storeLoanData", new java.util.ArrayList());
    ((java.util.List)_myOperations.get("storeLoanData")).add(_oper);
    PLease suggest if i make some changes in stub and skeleton how it would reflect the WSDL... or else please suggest where shud i do the required changes.

Maybe you are looking for

  • List of tables in SRM

    Hi all,        can anyone send me the list of tables in SRM.also some useful docs for SRM ABAP development(info on BADI etc).Will reward points.. mail me at [email protected]

  • Has anyone else had problems returning a macbook to Apple?

    I apologize if this is not the right place to be asking such a question, but I was not sure where else to go for information. I returned my macbook on December 29th 2014, the day after it was purchased. I had the receipt, all the cords and accessorie

  • Hr...bdc for pa40-salary increment

    HI FRIENDS.. M NOT ABLE TO FETCH VALUES FOR TABLE CONTORL IN PA40 T.CODE FOR SALARY INCREMENT.. ACT D PROBLEM IS.. THE OLD SALARY SRTUCTURE IS DIFFERENG FROM CURRENT SALARY STRUCTURE IN EXCEL SHEET.. DOES ANY1 HAVE THE BDC FOR SALARY INCREMENT ..? PL

  • I am annoyed at how the Verizon site gets my hopes up

    Ok so my wifes birthday is coming up in 2 weeks and I have heard her over and over how she wished she had a better phone and better camera. Now she has an old Iphone 4 and I have decided I would check and see if I could upgrade her phone. She is in c

  • PB with beans binding in a netbeans 6 java project with ant script existing

    Hi all, I am using netbeans 6.01. I want to use beans binding in a simple swing form created with Matisse designer. If i do beans binding in a Netbeans java project with existing ant script i have the following error : java.lang.UnsupportedOperationE