Webservice example

Hai Friends,
I need to develop a web service, which should be able to send a file as attachment with soap attachments. it must be able to read the attachment file send by a client (All using SAAJ api)
Can anyone please send me the source code of the client and the webservice with message handler to me.
Thanks and regards
Sandy E

Hi,
Please see the following weblogs
/people/durairaj.athavanraja/blog/2004/10/17/how-many-lines-of-java-code-did-i-write-for-a-simple-web-dynpro
/people/anilkumar.vippagunta2/blog/2005/07/20/developing-web-application-without-writing-single-line-of-code-my-first-web-log
Web Dynpro Backend Access [original link is broken]
Kind Regards,
S.Saravanan.

Similar Messages

  • Webservice example generates internal error page

    When trying to get the shipped webservice example "address book" to work I constanly get a page from the LV webserver "Access Error: 500 -- Internal Server Error". it is however able to display the addcontacts html page, but that in trn is not able to post the entered data, without resulting in the same error.
    What could be the problem?
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

    Hello Andre,
    thank you for your post on our forum. I tried to reproduce your problem and got the same error. I used Labview 8.6, did you use a different version? I will try to reproduce it with another version where this example is included.
    If I try to open the pages from the project explorer (so from C:\Program Files\National Instruments\LabVIEW 8.6\examples\comm\webservices\address book\data\new_contact.html ) I've got a security warning (with both pages). I tried to switch of all internet security but the warning wouldn't disappear. Maybe I'm looking to the wrong direction; but I'm looking to get rid of this warning.
    Best regards,
    Martijn S
    Applications Engineer
    NI Netherlands

  • Webservice example - Get a stock quote

    Some time ago I saw an example of getting a selected realtime stock quote into an Xcelsius dashboard. Can somebody point me to a resource that could teach me how to leverage existing XML code to use for my webservice example?
    Thanks,
    Hans

    Please refer the following URL:
    [http://resources.businessobjects.com/support/cx/help/crystalXcelsiusworkgroup4Help/source/ug_SampleModelWSC.htm]
    Free web servies:
    [http://www.webservicex.net/WCF/default.aspx]

  • Encrypt webservice example won't run on 8.1beta

    I downloaded the webservice encrypt example and installed per the directions.
    However, when attempting to run the client. I am getting this error...
    Buildfile: build.xml
    run:
    [java] <Jul 2, 2003 8:59:57 AM EDT> <Info> <webservice> <BEA-220024> <Handler
    weblogic.webservice.core.handler.WSSEClientHandler threw an exception from its
    handleRequest method. The exception was:
    [java] weblogic.xml.security.SecurityConfigurationException: Failed adding
    encryption to request - with nested exception:
    [java] [weblogic.xml.security.SecurityProcessingException: Problem adding
    encrypted key - with nested exception:
         [java] java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
    Failed adding encryption to request; nested exception is:
    [java]      javax.xml.rpc.soap.SOAPFaultException: Failed adding encryption to
    request
    [java] [weblogic.xml.security.encryption.EncryptionException: http://www.w3.org/2001/04/xmlenc#tripledes-cbc
    can only be used with a domestic license]].>
    [java]      at sign.SecurityPort_Stub.echo(SecurityPort_Stub.java:30)
    [java]      at sign.SecureClient.main(SecureClient.java:63)
    [java] Caused by: javax.xml.rpc.soap.SOAPFaultException: Failed adding encryption
    to request
    [java]      at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:270)
    [java]      at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
    [java]      at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
    [java]      at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:416)
    [java]      at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
    [java]      at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
    [java]      at sign.SecurityPort_Stub.echo(SecurityPort_Stub.java:27)
    [java]      ... 1 more
    [java] Exception in thread "main"
    BUILD SUCCESSFUL
    Total time: 6 seconds
    I am sure its something minor, but would appreciate any help.
    Thanks,
    John

    Hi
    This should be fixed in the 8.1 release can you try it with GA version.
    Thanks
    Ajay
    "John McGraw" <[email protected]> wrote in message
    news:[email protected]...
    >
    I downloaded the webservice encrypt example and installed per thedirections.
    However, when attempting to run the client. I am getting this error...
    Buildfile: build.xml
    run:
    [java] <Jul 2, 2003 8:59:57 AM EDT> <Info> <webservice> <BEA-220024><Handler
    weblogic.webservice.core.handler.WSSEClientHandler threw an exception fromits
    handleRequest method. The exception was:
    [java] weblogic.xml.security.SecurityConfigurationException: Failedadding
    encryption to request - with nested exception:
    [java] [weblogic.xml.security.SecurityProcessingException: Problem
    adding> encrypted key - with nested exception:>      [java java.rmi.RemoteException: SOAPFault:javax.xml.rpc.soap.SOAPFaultException:
    Failed adding encryption to request; nested exception is:
    [java] javax.xml.rpc.soap.SOAPFaultException: Failed addingencryption to
    request
    [java] [weblogic.xml.security.encryption.EncryptionException:http://www.w3.org/2001/04/xmlenc#tripledes-cbc
    can only be used with a domestic license]].>
    [java] at sign.SecurityPort_Stub.echo(SecurityPort_Stub.java:30)
    [java] at sign.SecureClient.main(SecureClient.java:63)
    [java] Caused by: javax.xml.rpc.soap.SOAPFaultException: Failedadding encryption
    to request
    [java] atweblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:270)
    [java] atweblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131
    [java] atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
    [java] atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:416)
    [java] atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
    [java] atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
    [java] at sign.SecurityPort_Stub.echo(SecurityPort_Stub.java:27)
    [java] ... 1 more
    [java] Exception in thread "main"
    BUILD SUCCESSFUL
    Total time: 6 seconds
    I am sure its something minor, but would appreciate any help.
    Thanks,
    John

  • Mate webservice example

    Hi,
    First time I am using Mate Framework. Gone through lots of material but its just mentioning examples with ColdFusion. I need to use asp.Net for my work using webservices.Can anyone please help me for the issue I am facing. I am in urgent need of the solution. Thank you in advance.

    Hello Andre,
    thank you for your post on our forum. I tried to reproduce your problem and got the same error. I used Labview 8.6, did you use a different version? I will try to reproduce it with another version where this example is included.
    If I try to open the pages from the project explorer (so from C:\Program Files\National Instruments\LabVIEW 8.6\examples\comm\webservices\address book\data\new_contact.html ) I've got a security warning (with both pages). I tried to switch of all internet security but the warning wouldn't disappear. Maybe I'm looking to the wrong direction; but I'm looking to get rid of this warning.
    Best regards,
    Martijn S
    Applications Engineer
    NI Netherlands

  • Message webservice example

    Hi
    I 'm trying to test a message web service example on WLS6.1 SP1
    but, the following error in ProducerClient.
    somedoby knows that?
    Exception in thread "main" javax.naming.NamingException: i/o failed
    java.io.IOEx
    ception: http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/so
    ap/encoding/:http://www.w3.org/1999/XMLSchema:anyType:No codec for decoding
    http
    ://xml.apache.org/xml-soap/literalxml: [ CodecFactory:
    http://schemas.xmlsoap.or
    g/soap/encoding/=null, =null]. Root exception is java.io.IOException:
    http://xm
    l.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/:http:
    //www.w3.org/1999/XMLSchema:anyType:No codec for decoding
    http://xml.apache.org/
    xml-soap/literalxml: [ CodecFactory:
    http://schemas.xmlsoap.org/soap/encoding/=n
    ull, =null]
    at weblogic.soap.wsdl.binding.Part.typeToClass(Part.java:74)
    at weblogic.soap.wsdl.binding.Part.toSoapType(Part.java:51)
    at
    weblogic.soap.wsdl.binding.Message.getParameters(Message.java:43)
    at
    weblogic.soap.wsdl.binding.BindingOperation.populate(BindingOperation.java:5
    5)
    at weblogic.soap.wsdl.binding.Binding.populate(Binding.java:48)
    at
    weblogic.soap.wsdl.binding.Definition.populate(Definition.java:116)
    at
    weblogic.soap.WebServiceProxy.getServiceAt(WebServiceProxy.java:176)
    at weblogic.soap.http.SoapContext.lookup(SoapContext.java:76)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at
    examples.webservices.message.ProducerClient.main(ProducerClient.java:48)
    -shunji

    You can try something like this:
    Variables:
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>
    <!-- Reference to the message that will be sent back to the requester during callback -->
    <variable name="outputVariable" messageType="client:BPELProcess1ResponseMessage"/>
    </variables>
    Assign:
    <assign name="EmptyAssign">
    <copy>
    <from variable="inputVariable" part="payload" query="/ns1:Balance/ns1:Empty"/>
    <to variable="outputVariable" part="payload" query="/ns1:Balance/ns1:Empty"/>
    </copy>
    </assign>
    The xsd user:
    <?xml version="1.0" encoding="windows-1252"?>
    <schema xmlns:tns="http://xmlns.oracle.com/bpel/samples/Dummy"
    attributeFormDefault="unqualified" elementFormDefault="qualified"
    targetNamespace="http://xmlns.oracle.com/bpel/samples/Dummy"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <element name="Empty"/>
    <element name="Balance">
    <complexType>
    <sequence>
         <element name="Empty"/>
    <element name="Message" type="tns:messageType"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="messageType">
    <sequence>
    <element name="subject" type="xsd:string"/>
    <element name="content" type="xsd:string"/>
    <element name="address" type="xsd:string"/>
    </sequence>
    </complexType>
    </schema>
    ]

  • Reliable Webservice Example

    Does anyone have a working example of a Reliable Webservice that they could post or point to? The reliable example provided in WebLogic 10.3.1 and 10.3.3 do not work as advertised. When you follow the directions the example continues to run on a single (source) server and not split across Source and Destination services servers. Your help would be greatly appreciated.

    Hello Andre,
    thank you for your post on our forum. I tried to reproduce your problem and got the same error. I used Labview 8.6, did you use a different version? I will try to reproduce it with another version where this example is included.
    If I try to open the pages from the project explorer (so from C:\Program Files\National Instruments\LabVIEW 8.6\examples\comm\webservices\address book\data\new_contact.html ) I've got a security warning (with both pages). I tried to switch of all internet security but the warning wouldn't disappear. Maybe I'm looking to the wrong direction; but I'm looking to get rid of this warning.
    Best regards,
    Martijn S
    Applications Engineer
    NI Netherlands

  • Webservice Example with two views

    Hi,
    I've been searching around for a weblog that would describe at least two views.
    Have anyone know of good weblogs?
    Advance Thanks
    Rakesh

    Hi,
    Please see the following weblogs
    /people/durairaj.athavanraja/blog/2004/10/17/how-many-lines-of-java-code-did-i-write-for-a-simple-web-dynpro
    /people/anilkumar.vippagunta2/blog/2005/07/20/developing-web-application-without-writing-single-line-of-code-my-first-web-log
    Web Dynpro Backend Access [original link is broken]
    Kind Regards,
    S.Saravanan.

  • Example, How to run WebServices from C#, the easy way

    Hi,
    Anyone who visited the ByD PDI workshops may remember the WebService examples with SoapUI.
    Additionally, I want to explain another way of testing WebServices for ByD, which is IMHO way more easy
    and closer to reality.
    First of all, you need access to a ByD Studio and be able to create Solutions in there.
    Second, if you don't have a Visual Studio C# 2010 installed already, go to Microsoft's homepage and grab a free Express version there. Of course, you also have to install it
    For this example, I assume, that you want to do a 'Read' on a specific instance of your own BO.
    In this case, we call our BO MasterDataWanneBe .
    Quick guide for creating a WebService 'Read'
    1.  Create new WebService
    1.1.     Name: ReadAll
    1.1.a.  Namespace -> your soltion's namespace
    1.1.b.  Business object
    1.2.  Business Object View Name
    1.2.a.  Name = ReadAll
    1.2.b.  Select all Nodes + subnodes
    1.3.  Create u201AReadu2018 Service Operation
    1.3.a.  Name = Read
    1.3.b.  Select all nodes + subnodes
    2.  Activate WS
    3.  Create WS authentication file (.wsauth)
    4.  Add WS to authentication
    5.  Activate WSAuth (will create a view in background)
    6.  Assign created WS View + WS Workcenter
    7.  Authorize your user for this WorkCenter + View (in ByD, User Management)
    8.  Download WSDL, to for example: c:\ZAYQSY0Y_ReadAll.wsdl
    Now you have a valid WSDL, pointing your solution and we go next to the more interesting part.
    1. Start Visual Studio
    2. Create a new Solution, Type = C# Console Application; project name = BydTest
    3. Within the project explorer, right click on References, choose 'add service reference'
    4. Click 'advanced' (bottom left)
    5. Click 'Web reference' (bottom left)
    6. Enter the downloaded WSDL file as URL, example: c:\ZAYQSY0Y_ReadAll.wsdl
    7. It may happen, that there will be a security warning, just ignore it and the WSDL source should be displayed
    8. Type in name 'ReadAll' as reference name
    9. Press OK (the service 'ReadAll' will appear in the web reference list, within project explorer)
    10. Type in the following C# code
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using BydTest.ReadAll;
    using System.Net;
    namespace BydTest
        class Program
            static void Main(string[] args)
                new Program().run();
            private void run()
                BydTest.ReadAll.service service = new BydTest.ReadAll.service();
                service.Credentials = new SuperSecretCredentials();
                MasterDataWanneBeReadAllByIDQueryMessage_sync request = new MasterDataWanneBeReadAllByIDQueryMessage_sync();
                request.MasterDataWanneBe = new MasterDataWanneBeReadAllByIDQuery();
                request.MasterDataWanneBe.ID = "MYTESTID"; // assuming, one instance with this ID exists!
                MasterDataWanneBeReadAllByIDResponseMessage_sync response;
                response = service.Read(request);
                if (response.Log.Item != null) foreach (BydTest.ReadAll.LogItem log in response.Log.Item)
                    Console.WriteLine("Log: " + log.Note);
                Console.WriteLine("-------------------------------------------------------");
                if (response.MasterDataWanneBe != null)
                    // This BO has to elements: 'ID' and 'RunStartDate'
                    Console.WriteLine("My BO's ID:" + response.MasterDataWanneBe.ID);
                    Console.WriteLine("My BO's StartDate:" + response.MasterDataWanneBe.RunStartDate.ToString());
        class SuperSecretCredentials : ICredentials
            public NetworkCredential GetCredential(Uri uri, string authType)
                return new NetworkCredential("myuser", "mypassword");
    Example output, when selected ID was wrong:
    Log: No instance found for specified key
    Example output, when ID there is an existing BO instance with given ID:
    My BO's ID:E5F42697_MKIRST
    My BO's StartDate:18.05.2011 13:18:08
    To my experience, this way is rock solid and I've never had any problems.
    The two major pitfalls are:
    Problem: System.Net.WebException,  Message=Fehler bei der Anforderung mit HTTP-Status 401: Unauthorized
    Solution: Check, if you're using the correct user ID. Most likely you're using an user alias and not the real user ID (generated IDs are most often longer than the shorter aliases)
    Problem: SRT, RBAM authorization denied
    Solution: Check if WorkCenter and WebService (Dummy-)View are assigned to your user. Sometimes it helps, re-activate your complete solution within ByD Studio AND/OR right click on your solution (ByD Studio) and choose 'Update Authorizations and Access Rights'

    Really good! Thanks for sharing this!

  • Deploying an EJB WebService under WLS 9.1 - port component "Hello" is not found in wsdl.

    Hi,
    I'm trying to deploy a simple EJB webservice example on WLS 9.1. The appc
    compile works fine, but the server deployment throw the following error
    message:
    [java] port component "Hello" is not found in wsdl.
    It's simple JAX-RPC based webservice where a SessionBean method is used as
    the service implementation. The same configuration (webservice.xml,
    mapping.xml and HelloService.wsdl) works fine under JBoss 4.0, but not with
    WLS 9.1. Maybe it's a simple configuration error and someone can help.
    Regards
    Guido
    Appendix
    webservice.xml
    <webservices xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1\.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>HelloService</webservice-description-name>
    <wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file>
    <jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>Hello</port-component-name>
    <wsdl-port>HelloPort</wsdl-port>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <service-impl-bean>
    <ejb-link>HelloBean</ejb-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>
    mapping.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/types</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/</namespaceURI>
    </package-mapping>
    <service-interface-mapping>
    <service-interface>com.jcoffee.components.ws.HelloService</service-interface
    >
    <wsdl-service-name
    xmlns:serviceNS="http://ws.components.jcoffee.com/">serviceNS:HelloService</
    wsdl-service-name>
    <port-mapping>
    <port-name>HelloPort</port-name>
    <java-port-name>HelloPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <wsdl-port-type
    xmlns:portTypeNS="http://ws.components.jcoffee.com/">portTypeNS:Hello</wsdl-
    port-type>
    <wsdl-binding
    xmlns:bindingNS="http://ws.components.jcoffee.com/">bindingNS:HelloBinding</
    wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>hello</java-method-name>
    <wsdl-operation>hello</wsdl-operation>
    <method-param-parts-mapping>
    <param-position>0</param-position>
    <param-type>java.lang.String</param-type>
    <wsdl-message-mapping>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_hello</w
    sdl-message>
    <wsdl-message-part-name>String_1</wsdl-message-part-name>
    <parameter-mode>IN</parameter-mode>
    </wsdl-message-mapping>
    </method-param-parts-mapping>
    <wsdl-return-value-mapping>
    <method-return-value>java.lang.String</method-return-value>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_helloRes
    ponse</wsdl-message>
    <wsdl-message-part-name>result</wsdl-message-part-name>
    </wsdl-return-value-mapping>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    HelloService.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="HelloService"
    targetNamespace="http://ws.components.jcoffee.com/"
    xmlns:tns="http://ws.components.jcoffee.com/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="Hello_hello">
    <part name="String_1" type="xsd:string"/>
    </message>
    <message name="Hello_helloResponse">
    <part name="result" type="xsd:string"/>
    </message>
    <portType name="Hello">
    <operation name="hello" parameterOrder="String_1">
    <input message="tns:Hello_hello"/>
    <output message="tns:Hello_helloResponse"/>
    </operation>
    </portType>
    <binding name="HelloBinding" type="tns:Hello">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="hello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </input>
    <output>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </output>
    </operation>
    </binding>
    <service name="HelloService">
    <port name="HelloPort" binding="tns:HelloBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
    </service>
    </definitions>
    and last but not least the ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>JCoffee web service sample</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>HelloBean</ejb-name>
    <service-endpoint>com.jcoffee.components.ws.Hello</service-endpoint>
    <ejb-class>com.jcoffee.components.ws.HelloBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

    Hi again,
    I got it - i've forgot the namespace prefix for the wsdl-port.
    Now it works.
    Thanks!
    "Ben" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]...
    Hi,
    I'm trying to deploy a simple EJB webservice example on WLS 9.1. The appc
    compile works fine, but the server deployment throw the following error
    message:
    [java] port component "Hello" is not found in wsdl.
    It's simple JAX-RPC based webservice where a SessionBean method is used as
    the service implementation. The same configuration (webservice.xml,
    mapping.xml and HelloService.wsdl) works fine under JBoss 4.0, but notwith
    WLS 9.1. Maybe it's a simple configuration error and someone can help.
    Regards
    Guido
    Appendix
    webservice.xml
    <webservices xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1\.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>HelloService</webservice-description-name>
    <wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file>
    <jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>Hello</port-component-name>
    <wsdl-port>HelloPort</wsdl-port>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <service-impl-bean>
    <ejb-link>HelloBean</ejb-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>
    mapping.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/types</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/</namespaceURI>
    </package-mapping>
    <service-interface-mapping>
    <service-interface>com.jcoffee.components.ws.HelloService</service-interface
    >>
    <wsdl-service-name
    xmlns:serviceNS="http://ws.components.jcoffee.com/">serviceNS:HelloService</
    wsdl-service-name>
    <port-mapping>
    <port-name>HelloPort</port-name>
    <java-port-name>HelloPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <wsdl-port-type
    xmlns:portTypeNS="http://ws.components.jcoffee.com/">portTypeNS:Hello</wsdl-
    port-type>
    <wsdl-binding
    xmlns:bindingNS="http://ws.components.jcoffee.com/">bindingNS:HelloBinding</
    wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>hello</java-method-name>
    <wsdl-operation>hello</wsdl-operation>
    <method-param-parts-mapping>
    <param-position>0</param-position>
    <param-type>java.lang.String</param-type>
    <wsdl-message-mapping>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_hello</w
    sdl-message>
    <wsdl-message-part-name>String_1</wsdl-message-part-name>
    <parameter-mode>IN</parameter-mode>
    </wsdl-message-mapping>
    </method-param-parts-mapping>
    <wsdl-return-value-mapping>
    <method-return-value>java.lang.String</method-return-value>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_helloRes
    ponse</wsdl-message>
    <wsdl-message-part-name>result</wsdl-message-part-name>
    </wsdl-return-value-mapping>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    HelloService.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="HelloService"
    targetNamespace="http://ws.components.jcoffee.com/"
    xmlns:tns="http://ws.components.jcoffee.com/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="Hello_hello">
    <part name="String_1" type="xsd:string"/>
    </message>
    <message name="Hello_helloResponse">
    <part name="result" type="xsd:string"/>
    </message>
    <portType name="Hello">
    <operation name="hello" parameterOrder="String_1">
    <input message="tns:Hello_hello"/>
    <output message="tns:Hello_helloResponse"/>
    </operation>
    </portType>
    <binding name="HelloBinding" type="tns:Hello">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    style="rpc"/>
    >
    >
    <operation name="hello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </input>
    <output>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </output>
    </operation>
    </binding>
    <service name="HelloService">
    <port name="HelloPort" binding="tns:HelloBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
    </service>
    </definitions>
    and last but not least the ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>JCoffee web service sample</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>HelloBean</ejb-name>
    <service-endpoint>com.jcoffee.components.ws.Hello</service-endpoint>
    <ejb-class>com.jcoffee.components.ws.HelloBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

  • SAP Sybase ESP - Error: Invalid URI at Example: Using a Simple Web Services (SOAP) Input Adapter

    Hello all,
    we need our help regarding the StockTrader example project that is delivered with SAP Sybase Event Stream Processor (Sybase ESP 5.1).
    we want to build a simple Web Service and follow the instructions as described in the Sybase Infocenter. We have attached a screenshot ("Sybase InfoCenter") that contains the described steps (as copying the URL always lead to a wrong page).
    We have problems with Step 10 ("Start the ESP project by running the start_project.bat or start_project.sh script."). We get the error message "Invalid URI" as you can see in screenshot "[error] Invalid Uri". Previously we started the "start_node.bat" (Step 9) - see also screenshot "[error] Invalid Uri".
    Like in steps 6 and 7 mentioned, we have changed the parameters "USER" and "PASSWORD" of the adapter_config.xml files and the parameters "ADAPTER_EXAMPLE_USERNAME"and "ADAPTER_EXAMPLE_PASSWORD" of the
    set_example_env.bat files. Here, we were a bit confused wether we should change these parameters in all those files as there are 4 adapter_config.xml and 4 set_example_env.bat files. Please refer to the attached screenshot ("changed files").
    Does anyone know why this error occurs and how to continue to complete the Web Service?
    Later we want to push data with this Web Service into a SAP HANA database table.
    We are thankful for any input and help.
    Regards, Andreas

    Hello Neal,
    thanks a lot for your help.
    The solution for us was to change the column names inside Sybase ESP Studio to the column names in StockTraderMappings.xml.
    After compiling and running the project we could see the data and were also able to push it to SAP HANA.
    This is the CCL Code that worked for us:
    CREATE SCHEMA tradesSchema (
        transaction_buyerId INTEGER,
        transaction_sellerId INTEGER,
        transaction_supervisorIds INTEGER,
        transaction_tradeTime LONG,
        transaction_trades_amount INTEGER,
        transaction_trades_price FLOAT,
        transaction_trades_symbol STRING
    CREATE INPUT STREAM tradesIn SCHEMA tradesSchema;
    CREATE OUTPUT STREAM tradesOut SCHEMA tradesSchema
         AS  SELECT * FROM tradesIn;
    * mapFilePath is currently ignored and must be set via the mappingFile configuration parameter
    * in the given adapter configuration file (configFilePath).
    ATTACH INPUT ADAPTER Web_Services_SOAP_Input_Adapter TYPE soapinput TO tradesIn PROPERTIES configFilePath =
    'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/adapter_config.xml' ,
    mapFilePath = 'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/stockTraderMappings.xml' ,
    jdkHome = 'C:/Software/Java/jdk' ,
    discoveryWsdl = 'http://localhost:8080/axis2/services/StockTraderService?wsdl' ,
    discoveryWorkingDir = 'C:/tmp/adapter/soap' ,
    discoveryServiceName = 'StockTraderService' ;
    Regards, Andreas and Maik

  • WebService, HttpService, namespace

    I've happily been using htttpService calls, connecting to my
    own PHP scripts without many problems. But I now have to use
    services provided by a third party. The services can be used with
    either webService or httpService, but all return xml data with an
    included namespace. (xmlns="
    http://www.example.com/api").
    This seems to make life difficult, and I suspect I'm missing some
    magic ingredient. My biggest problem is populating a datagrid with
    the returned data.
    1. Problems using ArrayCollection
    If I use the webService call, and *don't* use the e4x
    resultFormat, I can populate the grid by setting the dataProvider
    to service.operation.lastResult. This works OK.
    If, instead, I set the dataProvider to an mx:ArrayCollection
    object like below, it doesn't work. No data appears in the grid.
    (This method is illustrated in a number of examples in the docs.)
    <mx:ArrayCollection id="statesAC"
    source="service.operation.lastResult" />
    But if I add an mx:Binding element, and point this to the
    ArrayCollection, it works.
    <mx:Binding source="service.operation.lastResult"
    destination="statesAC" />
    <mx:ArrayCollection id="statesAC" />
    I should be happy that this works, but I'd be more
    comfortable knowing why the middle approach doesn't, especially as
    the docs seem to push this as a preferred approach. Any thoughts?
    2. Problems using XMLListCollection
    This is more troubling, as I'd prefer to use an
    XMLListCollection to populate the grid.
    I've had no success using the webService approach. I can't
    get any of the above techniques for ArrayCollection to work for an
    XMLListCollection. No data appears in the grid.
    I've had more success with httpService and handling and
    converting the XML directly in the service's result event. But this
    also is not straightforward:
    -- I have to set a namespace, using either "default xml
    namespace = ...." or "use namespace ...". Without doing this, I'm
    unable to extract an XMLList from the returned XML. (The XMLList is
    used to make the XMLListCollection for the DataGrid.)
    -- It seems that the DataGrid's dataField properties are not
    recognised when a namespace is being used, even when the
    above-mentioned namespace settings are in place. A labelFunction
    has to be used, but even that is not straightforward.
    Assuming a property name of "Name", this won't work for a
    column setting (no data appear in the column):
    <mx:DataGridColumn dataField="Name" headerText="Name"/>
    This will work:
    public function gridFunction(item:Object,
    column:DataGridColumn):String {
    return item.Name;
    <mx:DataGridColumn headerText="Name"
    labelFunction="gridFunction"/>
    But this won't (although it works with XML that has no
    namespace set):
    public function gridFunction(item:Object,
    column:DataGridColumn):String {
    var fieldName:String = column.dataField;
    return item[fieldName];
    <mx:DataGridColumn headerText="Name"
    labelFunction="gridFunction"/>
    The labelFunction approach, although it displays data, still
    leaves isues with sorting. I'm sure this is not how things are
    meant to be.
    Any insights as to how to make this easier would be
    appreciated, especially with regard to working with
    XMLListCollections.

    From the webservice example.........
    http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=582
    Instead of using:
    default xml namespace = "http://www.webservicex.net"; to
    define the default namespace of the Webservice,
    You can automatically find the namespace of the Webservice
    and set it to your default namespace in your result handler. Then
    you would be able to use multiple webservices in multiple result
    handlers.
    [Bindable]private var xmlResult:XML;
    private var wsDefaultNS:Namespace;
    private var wsDefaultNS:Namespace;
    private function onResult(oEvent:ResultEvent):void
    xmlResult = XML(oEvent.result);
    wsDefaultNS = xmlResult.namespace();
    default xml namespace = Namespace(wsDefaultNS);
    I have only been able to get data from webservices into a
    datagrid by the labelfunction. I don't know of another way.

  • Non-Serializable objects in webservice

    Hi everyone,
    I'm writing a webservice that connects and performs update on a third-party
    data repository (document management system) through the vendor provided
    framework.
    Some of the objects used in the framework are not serialized, and WebLogic
    Workshop 7.0 won't compile my services because they contain non-serializable
    objects. Those objects are not used as messages or method parameters, rather
    are the member variables of the services.
    My question is how would I go about using non-serialized objects in a
    webservice class with WebLogic Workshop 7.0? I've seen some Apache AXIS
    webservice examples that does the similar thing, but some of the services
    works with non-serializable objects. Do I need to create an EJBcontrol that
    masks non-serializable objects to be used with the webservice?
    Any input is greatly appreciated. I'm still new at webservice programming.
    Thank you,
    Makoto

    Hi everyone,
    I'm writing a webservice that connects and performs update on a third-party
    data repository (document management system) through the vendor provided
    framework.
    Some of the objects used in the framework are not serialized, and WebLogic
    Workshop 7.0 won't compile my services because they contain non-serializable
    objects. Those objects are not used as messages or method parameters, rather
    are the member variables of the services.
    My question is how would I go about using non-serialized objects in a
    webservice class with WebLogic Workshop 7.0? I've seen some Apache AXIS
    webservice examples that does the similar thing, but some of the services
    works with non-serializable objects. Do I need to create an EJBcontrol that
    masks non-serializable objects to be used with the webservice?
    Any input is greatly appreciated. I'm still new at webservice programming.
    Thank you,
    Makoto

  • How can I run the examples?

    I need make any test about WebLogic, I have WebLogic Server in Solaris 2.6.
    Thanks in advancing.

    Well,
    I do not know about Solaris, but for the Windows you have a pritty good explanation
    HTML-files for each example.
    So if you want to run for example the WebServices-example, you will look for the
    HTML-File under C:\bea\samples\examples\webservices\rpc Folder.
    I guess it is very the same on Solaris
    good luck
    naz

  • Build webservices package on jax-ws using ant

    Hi,
    I am new to webservices so going through the webservices part of the java ee 5 tutorial. There i need to build the package of the webservices example on jax-ws using ant.But when i am trying to run ant command i am getting the error as build failed due to C:\glassfish-v3\lib not found.
    I have set my path for sun app server and also for ant.
    Why I am getting this error can anybody help me out?

    Hello,
    if you just need an ant you can download it separatelly from a website:
    http://ant.apache.org/bindownload.cgi
    I have also GlassFish v3 version and ant is not included:
    You can also you dowload it with GlassFish v2.1 .
    The ant is located in the directory "glassfish_install_directory\lib\ant\bin.
    I think that the ant version should be 1.6.5 and above.
    Regards,
    Miro.
    Note:
    GlassFish v 2.1 is an implementation of java ee 5.
    GlassFish v 3 should be an implementation of java ee 6.

Maybe you are looking for

  • Toggle Full Keyboard Access is Not Working after Shutdown/Reboot

    Hi, I'm yet another keyboard maniac and somehow as above subject was keep re-occured every time after enabled it, I've turn it on full keyboard access in system preferences > Keyboard > Keyboard Shortcuts. All seemed to be good before I shutdown or r

  • Full_screen_interactive performance

    I noticed a big performance hit in my application, and believe it was due to using StageDisplayStage.FULL_SCREEN_INTERACTIVE Here's the code that initialized the screen: stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; st

  • Javax.naming.NameNotFoundException: buslogic.HRAppFacade not found, help!!!

    I have followed the tutorial on http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_ejb_30/ejb_30.htm to create my own EJB with Jdeveloper, but I got some errors. Please help. When I run the client, it gave out the following errors: javax.na

  • How to get the real name of the webcam ?

    Hello, For my application, I need to display the name of the different webcams on the computer. How can I get a better name than vfw:Microsoft WDM Image Capture (Win32) ? Thank you

  • Build specifications gone

    LV 8.5 on XP Pro I have a project with the build specifications for an executable.  The problem is that the startup VI's that are designated in the properties keep coming up missing.  The ICON is still in the project, but when I go into the "source f