Client apps accessing WL 6 services

Hi All
This is an addendum to the question I posted :
Subject: External clients accessing WL(4.5.1 SP13) JNDI
Date: Thu, 15 Feb 2001 14:07:38 -0500
(BTW, I heard from only one person till now).
I would repeat the question. We all have clients (applications) which
would want to make use of our services (beans, etc). How are they able
to access the Weblogic server's JNDI space?
Only by having WLInitialCtxFactory and other related classes in their
classpath??
If that IS the case, isnt it defeating the purpose of using JNDI. Where
is the transparency of location here. Looks like I still need to bundle
Weblogic server classes to my clients (how many ever they may be).
Support says there was no other way in WL 4.5.1. Is it any different in
WL 6?
If there is another way people are dealing with this situation, I would
be grateful if you can reply to this post.
Thanks
Madhu
(PS Weblogic engineers, please respond to this)

Hi
I wish there was a way that one could access using ANY JNDI implementation
PROVIDED the credentials could be verified within the Weblogic security
realm.
Then I could ask the client to use SUN/Netscape or any other vendor's
implementation and give the client a generic guest kind of credentials.
What would be the issues involved if this were to happen?
In our situation, the client might be another team hosting their own
applications on Websphere or SilverStream and I cannot ask them to load up
WL classes too. You know how it works.
Thanks
Madhu
Daniel Hoppe wrote:
Hi,
for WL5.1 there is a fourth approach which needs careful investigation
to work properly but which is successfully used with Java Webstart
within our development team. I guess this will work for WL6.0 in a
similar manner. We use java -verbose and utils.verboseToZip to extract
only the classes needed into one wl specific jar. The advantage is that
there is an overal jar of about 2MB, so it's realistic to distribute
from ISDN connections onwards. The disadvantage is that you need to
follow every code line of your application very carefully - especially
error situations - to get all the necessary classes.
Daniel
-----Original Message-----
From: K.J. van der Bent [mailto:[email protected]]
Posted At: Tuesday, February 27, 2001 11:29 PM
Posted To: jndi
Conversation: Client apps accessing WL 6 services
Subject: Re: Client apps accessing WL 6 services
Yes, dealing with the same problem.
At the moment we think that there are three strategies:
1. Deploy all WL classes on the client (weblogicaux, current
servicepack-jar
and a jar containing the complete classes directory). This takes about
20
MB. Since we will use Java Web Start for deploying our applications we
install this 'weblogic bundle' along with the installation of JWS. From
then
on, only the servicepack jar (~2 MB) will be updated on the server and
therefore downloaded by JWS to the client. It's not an ideal situation
but
it allows 'quick and easy' developing
2. A second approach is to develop applets and use the plugin to execute
them on the client. The plugin allows single class loading (JWS only
loads
jars!) and requests for a class only when it is needed. This way you
don't
need 20 MB of jars on the client but still many weblogic classes are
loaded.
(And aren't we tempted to use Java Web Start instead of applets embedded
in
a browser!)
3. The third approach we are currently looking into is develop an
application totally independent of Weblogic (Thus, no
WLInitialCtxFactory).
Disadvantages are that you can't use some of the benefits of WL (like
optimized t3 connections and maybe easier developing). Advantage however
is
that our applications are independent of the type of application server.
Briefly this is where we are now. We were also a little discouraged
while
browsing the newsgroups and noticing that this seems to be an issue for
many
developers.
Maybe someday...
K.J. van der Bent

Similar Messages

  • (261229964) Q RPCC-10 Where would a client application access the "waterworks.services.WaterUsage"  class?

    Q <RPCC-10> Where would a client application access the "waterworks.services.WaterUsage"
    package that it imports - and what is contained within it?
    A <RPCC-10> The WaterUsage interface is the remote interface for the stateless session
    bean that the RPC style web service uses for the business processing and it is included
    in the client.jar file for that RPC web service.

    Q <RPCC-10> Where would a client application access the "waterworks.services.WaterUsage"
    package that it imports - and what is contained within it?
    A <RPCC-10> The WaterUsage interface is the remote interface for the stateless session
    bean that the RPC style web service uses for the business processing and it is included
    in the client.jar file for that RPC web service.

  • Perl based client to access weblogic web services

    Hello All,
    Do we have sample code where Perl (Soap::Lite) client will access weblogic based web services using https protocol?
    Regards,
    ssaxena

    Hello All,
    Do we have sample code where Perl (Soap::Lite) client will access weblogic based web services using https protocol?
    Regards,
    ssaxena

  • Client app to consume web service with security

    I need to write a simple client to access a WS.
    Things I can not do
    Modify the server
    Add external jars
    The client will be part of a command line call and will run as a stand alone.
    I've been searching all day and have found hundreds of vague, overly complex examples, mostly based on SOAPHandler (which tells me I need to install server components which I cannot do)
    I grasp the general requirements but am having difficulty figuring out how to add the security elements to the header.
    What do I need to do to add the username and password tokens to the header?
    This is where I am so far.
    package findingLetter;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.namespace.QName;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPBodyElement;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.soap.SOAPMessage;
    public class getPOC {
        public getPOC() {
            super();
        public List<String> lookup(String lenderid, String url, String user, String pw) throws SOAPException {
            List<String> contactInfo = new ArrayList<String>();
            SOAPMessage message = MessageFactory.newInstance().createMessage();
            SOAPHeader header = message.getSOAPHeader();
            header.detachNode();
            SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
            envelope.setAttribute("namespace","http://www.siebel.com/xml/FHA%20Lender%20Summary%20Request%20IO");
            SOAPBody body = message.getSOAPBody();
            QName bodyName = new QName("LenderSummaryRequestIo");
            SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
            SOAPElement symbol = bodyElement.addChildElement("Institution");
            symbol.addTextNode(lenderid);
            SOAPConnection connection = SOAPConnectionFactory.newInstance().createConnection();
            SOAPMessage response = connection.call(message, url);
            connection.close();
                    SOAPBody responseBody = response.getSOAPBody();
                    SOAPBodyElement responseElement = (SOAPBodyElement)responseBody.getChildElements().next();
                    SOAPElement returnElement = (SOAPElement)responseElement.getChildElements().next();
                    if(responseBody.getFault()!=null){
                        System.out.println(returnElement.getValue()+" "+responseBody.getFault().getFaultString());
                    } else {
                        System.out.println(returnElement.getValue());
                    try {
                        System.out.println(getXmlFromSOAPMessage(message));
                        System.out.println(getXmlFromSOAPMessage(response));
                    } catch (IOException e) {
                        e.printStackTrace();
            return contactInfo;
        private static String getXmlFromSOAPMessage(SOAPMessage msg) throws SOAPException, IOException {
            ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();
            msg.writeTo(byteArrayOS);
            return new String(byteArrayOS.toByteArray());

    Below is the code to add security header.
    public List<String> lookup(String lenderid, String url, String user, String pw) throws SOAPException { 
          SOAPHeader header = message.getSOAPHeader();
               if (header == null) {
                     header = envelope.addHeader();
                SOAPElement headerElement = createSecurityHeader(uName, pWord);
                soapHeader.addChildElement(headerElement);.................
    private static SOAPElement createSecurityHeader(String uName,String pWord) throws SOAPException {
           SOAPElement UsernameToken = null;
           SOAPFactory sFactory = SOAPFactory.newInstance();
           UsernameToken = sFactory.createElement("wsse:UsernameToken", "", WS);
           SOAPElement Username = sFactory.createElement("wsse:Username","", WS);
           Username.setValue(uName);
           UsernameToken.addChildElement(Username);
           SOAPElement Password = sFactory.createElement("wsse:Password","",WS);
           Password.setValue(pWord);
           QName qname = new QName("","Type");
           Password.addAttribute(qname,"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText");
           UsernameToken.addChildElement(Password);
           SOAPElement wsseSecurity = sFactory.createElement("wsse:Security","",WS);
           wsseSecurity.addChildElement(UsernameToken);
          return wsseSecurity;

  • Error while running Client for accessing EJB3.0 wes service..

    Hi:
    I have created client for accessing EJB3.0 web service using Jax-ws.
    I am using JBoss server.
    But the problem is after running the client i am getting following error :
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/AttachmentPartImpl
         at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.<clinit>(AttachmentUnmarshallerImpl.java:55)
         at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:500)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
         at $Proxy25.celsiusToFarenheit(Unknown Source)
         at MainMethod.main(MainMethod.java:21)Can any body give me solution on this?
    Thank You.

    the problem seems to lie in a combination of JDK 6 and a specific version of SAAJ that it has integrated. Different resources on the net indicate that if you use a newer version of SAAJ, 1.3.1 or higher, it should be fixed.

  • [Windows 8.1 Desktop/Surface/Phone] connect client app to synchronization service(s)

    Hello Everybody!
    I have to do some research about:  what is the best way to set up my project, I am new to Azure.
    Situation:
    I need to develop a service(s) and client app(s) that are able to synchronize data with each other: files and database changes. the client app(s) must have the capability  to work online / offline,  offline: when there is no internet connection
    the data has to be stored local on the client device(s) and sync it later when there is active internet connection.
    Client Devices:
    Windows 8.1 (Windows 8.1 PC/Desktop)             
    Windows 8.1 RT (Windows 8.1 Surface tablet)
    Windows Phone 8.1 (Windows 8.1 Smart-phone)
    We prefer to create the clients as a C# Store App Application.
    Service:
    This might become , if technically possible and preferable, a Azure service who main task it is to manage the communication between the server and the clients
    Last days I spend my time doing research about how to get this done right.
    I found several interesting techniques, some of got all the features I needed, and some just a few, but most of them aren't supported on one or more devices.
    Microsoft Synchronization Framework
      Sync Toolkit WinRT / Phone
     Live SDK
    Microsoft Synchronization Framework - got all the features I need but is not supported on Win RT and Phone
    Sync Toolkit WinRT / Phone - Only Database Sync, is got bad documentation and unknown if supported on Desktop
    Live SDK - Libraries to integrate with OneDrive, Only File Sync
    Questions:
    Does Azure support all the devices?
    Is Azure supported in  C# Windows 8.1 Store Apps?
    Is Azure suited to host a service I described?
    Thanks in advanced!

    Hi JelteV,
    Thanks for posting!
    Base on my experience, if you wan to synchronize data with each clients. I suggest you could refer to this solution:
    1.Create a Sql Azure Database or storage account for storing your data 
    2.Create a WCF service (web role or work role ) for communication between Client and Database
    3.Set Up Table Structure (Important). I suggest you could add the deviceID and userID to distinguish the different data source. And add fields such as 'status', 'create time', 'latest update time' and so on.
    For example, you client insert a record into local database and set the 'status' as ‘stay update’ or '1'. When your client connect the database and synchronize the data to server, you could set the 'status' as 'updating' or '2' . After
    synchronization  data, you could change the status as 'updated' or '3'.
    According to this idea, the client CRUD -> change the local state code
    -> Sync data -> change the local state code ->
    synchronization is complete -> change the local state code .If the mobile device need operate the data on the service , it also need to change the server status code to be updated, to be deleted (deleted should
    be treated differently), the next time the client login server automatically checks the "state" as "pending action" and then synchronize the server to the client. So whether it is operating on a local table, or on the side of the direct
    operation of the service, you can ensure that the data is synchronized two tables.
    >>Does Azure support all the devices?
    >>Is Azure supported in  C# Windows 8.1 Store Apps?
    >>Is Azure suited to host a service I described?
    From your question, I think you could create a WCF service host on azure, and call WCF service form different devices. And this method is supported the different device and win8.1 store app.
    Also, please see this thread:
    http://stackoverflow.com/questions/14595738/net-data-synchronization-between-multiple-clients-and-a-central-server
    Hope this helps.
    Regards,
    Will
    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.

  • Accessing XI web service from portal as client

    Hi all
    I need to access a web service which has been created on XI    
    server. I want to acess it from enterprise portal as a web service client. please provide related links to achieve this.
    thanks in advance
    vaishali

    Vaishali,
    never did this before, but some general ideas:
    Do you have an WSDL for that web service? Then simply use your NWDS and select New --> Portal Service --> From WSDL (or similar). What I mean is the following: NWDS can read WSDL files and will automatically generate a proxy for you that actually generates an ordinary portal service. This portal service then can be called by standard means in SAP EP.
    Regards,
    Dominik

  • Error when updating Client Access Front End Service to Exchange 2013 Update 6

    When updating to Exchange 2013 Update 6 we received the following error at the Step 11 of 13: Client Access role: Client Access Front End service step: 
    Error:
    The following error was generated when "$error.Clear();
    $fe = get-ActiveSyncVirtualDirectory -server $RoleFqdnOrName -DomainController $RoleDomainController -ErrorAction SilentlyContinue;
    if ($fe -eq $null)
    new-ActiveSyncVirtualDirectory -DomainController $RoleDomainController -Role ClientAccess;
    else
    update-ActiveSyncVirtualDirectory $fe -DomainController $RoleDomainController -InstallIsapiFilter $true
    " was run: "System.Management.Automation.ParameterBindingException: Cannot convert 'System.Object[]' to the type 'Microsoft.Exchange.Configuration.Tasks.VirtualDirectoryIdParameter' required by parameter 'Identity'. Specified method is not supported. ---> System.NotSupportedException: Specified method is not supported.
    at System.Management.Automation.ParameterBinderBase.CoerceTypeAsNeeded(CommandParameterInternal argument, String parameterName, Type toType, ParameterCollectionTypeInformation collectionTypeInfo, Object currentValue)
    --- End of inner exception stack trace ---
    at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
    at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
    at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)".
    Problem was that if you have more than one ActiveSyncVirtualDirectory, the installer for Update 6 fails because it's not expecting an array of virtual directories to be returned. Solution is to remove the "extra" virtual directory, perform the
    installation, and then re-add the virtual directory. 
    None of the other types of virtual directories are susceptible to this, only ActiveSync. 

    Hi,
    Please try to reset registrar state:
    http://tsoorad.blogspot.in/2013/04/lync-2013-ee-pool-wont-start.html
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Kent Huang
    TechNet Community Support

  • Accessing wsdl to build a web svcs client app

    We are users of WebLogic 8.1 but have hit an embarrassing impasse. We were demonstrating
    how good it was using web services by deploying a service and using each of the
    leading market tools to build a client app dynamically by just pointing the tool
    at the published wsdl doc.
    We hit a brick wall trying to do this with WLW.
    For example in 3 mins in both JBuilderX & WebSphereAD5.1 we could tell the tool
    we wanted to build a Web Service THEN WE SELECT 'CLIENT', provide a URL to where
    the *.wsdl for the service is, then generate the code and test the functions published.
    Three experts at work (self included) just can't figure out how to even get started
    when attempting this with WLW. The help in WLW is as below ...
    Creating a Web Service Control from a WSDL File
    This procedure describes how to create a Web Service control if you have a WSDL
    file for the target web service.
    Ensure that the WSDL file for the web service is in your project.
    Browse to the WSDL file in the Application pane.
    Right-click on the WSDL file in the Application pane and select Generate JCX.
    None of us could achieve this.
    Any pointers to if this (dynamic build by pointing to wsdl URL) can be done at
    all will be much appreciated. If not we know which tools to adopt.
    Cheers
    Doug Marker

    Not a problem, I hope you have success with it. There's nothing like
    popping up workshop and dropping in a control to talk with a web service in
    like two minutes flat, I've found that has a nice profound affect when doing
    demos. I also personally try to find a web service written in dot net or
    perl or something totally opposite of J2EE which shows not only speed and
    ease of creation but complete interoperability as well :)
    "Doug Marker" <[email protected]> wrote in message
    news:[email protected]...
    >
    Ryan,
    Many thanks for your post. Will be trying this today. I have sommitted todo
    a live demo within a couple of weeks & want to be 100% sure that myself &other
    demonstrators can show how easy this process is.
    As a demo, it sure gets peoples attention.
    Cheers
    Doug Marker
    "ryan upton" <ryanjupton at learningvoyage dot com> wrote:
    Doug,
    You're thinking is correct in that it should be easy to do this in
    Workshop
    and in fact it is. Grab a WSDL file from somewhere like xmethods.com
    if you
    don't have an internal repository containing your own services. I assume
    you want to incorporate the service into a page flow? Open the .jpf,
    under
    data palette->controls->add select web service. In the wizard that pops
    up
    select a reference variable name in step one. In step two decidewhether
    you want to use an existing .jcx or create a new one (it sounds like
    you're
    going to want to create a new one) In step three enter the uri for the
    WSDL, click create and you're almost done. The only thing left is to
    call
    the methods of the web service and incorporate the results somewhere
    in you
    control or presentation. One cool thing that Workshop does is to provide
    the ability to automagically create a pageflow from the .jcx control,
    simply
    right click the control you've created, select generate pageflow and
    follow
    the wizard. Of course this is good for demos and you'll probably want
    to
    tweak it for real development work :)
    ~RU
    "Doug Marker" <[email protected]> wrote in message
    news:[email protected]...
    We are users of WebLogic 8.1 but have hit an embarrassing impasse.We
    were demonstrating
    how good it was using web services by deploying a service and usingeach
    of the
    leading market tools to build a client app dynamically by just pointingthe tool
    at the published wsdl doc.
    We hit a brick wall trying to do this with WLW.
    For example in 3 mins in both JBuilderX & WebSphereAD5.1 we could tellthe
    tool
    we wanted to build a Web Service THEN WE SELECT 'CLIENT', provide aURL to
    where
    the *.wsdl for the service is, then generate the code and test thefunctions published.
    Three experts at work (self included) just can't figure out how toeven
    get started
    when attempting this with WLW. The help in WLW is as below ...
    Creating a Web Service Control from a WSDL File
    This procedure describes how to create a Web Service control if youhave a
    WSDL
    file for the target web service.
    Ensure that the WSDL file for the web service is in your project.
    Browse to the WSDL file in the Application pane.
    Right-click on the WSDL file in the Application pane and select
    Generate
    JCX.
    None of us could achieve this.
    Any pointers to if this (dynamic build by pointing to wsdl URL) canbe
    done at
    all will be much appreciated. If not we know which tools to adopt.
    Cheers
    Doug Marker

  • Deploy BlazeDS services separately from Flex client app?

    Is it possible to deploy my BlazeDS services app separate
    from the Flex client app? I would like to manage the 2 deployments
    separately. Every example and the instructions seem to link
    everything into one deployment bundle.

    Hi Alex, thanks for your advice. I tried reading the client-side logs, but it just physically shows what I was saying earlier - that the consumer is connected and subscribed, but no messages are coming through to it.
    I've attached the output of the 'flashlog.txt' file. For the particular session shown, the flex application was sent 8 JMS messages, but as you can see nothing got through. I put a 'trace' message in the message handler function (for my consumer object), but it never gets called.
    'E2513351-75DA-0837-7263-3807B91D9630' consumer set destination to 'flextest-message-destination'.
    '7D784A40-DBBB-71F1-4029-3807B91D45E3' producer set destination to 'flextest-message-destination'.
    'consumer' consumer subscribe.
    'flextest-streaming-amf' channel endpoint set to http://localhost:8400/FLEXTEST/msgbroker/streaming-amf
    'flextest-streaming-amf' channel settings are:
    'flextest-streaming-amf' pinging endpoint.
    'flextest-streaming-amf' channel is connected.
    'flextest-streaming-amf' channel sending message:
    (mx.messaging.messages::CommandMessage)
      body=(Object)#0
      clientId=(null)
      correlationId=""
      destination="flextest-message-destination"
      headers=(Object)#0
      messageId="8A592005-3C8A-4C6C-B074-380857710C00"
      operation="subscribe"
      timeToLive=0
      timestamp=0
    'consumer' consumer connected.
    'consumer' consumer acknowledge for subscribe. Client id '37CC5DED-A019-7110-3C89-A9926835103E' new timestamp 1233595684954
    'consumer' consumer acknowledge of '8A592005-3C8A-4C6C-B074-380857710C00'.
    Seems to me there can only be two explanations: either my BlazeDS configuration is incorrect (which is unlikely given that everything works if I use a ActiveMQ as my JMS provider with only trivial changes to my configuration), or there is some bug within BlazeDS that is preventing it from working properly with FioranoMQ. What do you think?

  • Session tracking in java client app...*not jsp or servlets*

    Does anyone know of a way to keep a property accessible throughout a user session in a Java app? I'm writing a Java native client app with Apache Axis to access remote .NET services (web services). The service issues a session ticket upon login to implement security...this ticket needs to be accessible to all objects in the client app. In addition, this ticket needs to be "renewed" every 10 minutes or so.
    Any ideas on how to keep this ticket througout the session? And on how to update/renew every 10 minutes?
    ANY help would be appreciated Still relatively new to java...

    Hello.
    I use the following scenario in my project.
    User login to the web application then servlet keeps user data (IP-address, login name, etc) and creates a user ticket with the data. User ticket looks like a XML-element. After that I store the ticket to the Xindice DB.
    http://xml.apache.org/xindice/
    Xindice client API provides the useful methods for the ticket handling (read, update, delete).

  • How to create individual user to access the proxy service in osb

    Hi all,
    i have created a osb project. i need only one user to access the project with particular user name and password. The project should result in error if any other credentials is being given.
    The challenging part is that it should return a error message even when the user name and password is left blank. can anybody help me to resolve this issue?

    I'm guessing you're getting a 401 error back in soapUI. If so, this is because soapUI needs to send some credentials which match that user exactly.
    How would that user invoke the service normally - with an embedded WSS user / password in the request, or with an x509 cert + Identity Assertion? SoapUI will have to do the same as the client application does.
    In our environment, we use client certificates as authentication. Soapui is very good at presenting a client certificate if you have a .jks keystore with an identity cert. Since the role will only accept a single particular user, you would either have to expand the role to allow some admin access or have a certificate which presents the same CN value ( to map with identity assertion).
    If the client app uses username / password, the 'request properties' window ( lower left in soapui ) has properties for Username and Password which can be configured. This may allow soapUI to submit that user, but I haven't tested that.
    There's also the "Aut" tab in the request window which also allows the same.

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • How to access the Web Service Browser

    Hi,
    I need to access the Web Service Browser to generate a Web Service Description.
    How can I do it?
    I use the follow url:
    http://<host_name>:<port_number>/sap/bc/bsp/sap/WebServiceBrowser/search.html?sap-client=<relevant_client>
    but I can't say how to determine values for the three placeholders.
    Help me please.
    THANKS

    Hi Andrea,
    you can access the web services in sap transaction SICF. Then right click on the
    service and choose "test". The hostname is the host on where the sap system
    runs.
    The port ´number can be seen in transaction SMICM -> shift + F1. Here you can see
    the portnumer assigned to the HTTP protocol.
    And the client is the sap client (standard client) for which the service is configured.
    Hope this helps.
    KR,
    Andreas

  • How to use Axis to access a web service through Authentication  proxy

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
    please help me ,thank you!!!
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    //this is my access webservice faliure   codes
    public class TestClient
       public static void main(String [] args) {
           try {
                System.getProperties().setProperty("http.proxySet", "true");
                System.getProperties().setProperty("http.proxyHost","proxy.com");
                System.getProperties().setProperty("http.proxyPort", "8080");
                System.getProperties().setProperty("http.proxyUser", "username");
                System.getProperties().setProperty("http.proxyPassword","password");
               String endpoint =
                        "http://nagoya.apache.org:5049/axis/services/echo";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               System.err.println(e.toString());
       }I get an "(407)Proxy authorization required" error?

    I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
    Thanks in advance!

Maybe you are looking for

  • Can I use a portable hard drive for ipad data storage?

    Can I use a portable hard drive for ipad data storage?  I want an iPad mini, but don't want to get a large one (memorywise) along with cellular capability.  I remember that the old iPads coiuld not communicate via their iPhone connector to transfer d

  • 2 Iphone4 play live stream not same

    I stream live video from my streaming server and use 2 iphone4 to display. Unit 1. it play live stream normally. Unit 2. it play about 20-30 sec, and replay again again and again. Please advise me, what parameter that i should check or tune ? Thanks,

  • Issue with Report designer

    Hi all, When am trying to Insert a data provider in Report designer its throwing the following error. 'Error while loading query metadata, check query and portal settings'. The version of report designer is BI AddOn 7.x (based on 7.10)               

  • MicrosoftDNS Container Conflict Resolution - Creation times are the same

    Everyone, I am trying to resolve an AD conflict for the MicrosoftDNS container. From my research the general rule appears to be "delete the newer object". The problem I have is that the creation time of both containers is identical: Class       Creat

  • Web gallery default view

    The default view upon open a web gallery is "Grid". I'd like to change it to "Mosaic". Can this be done?