Basic question about Web Services

First I wan't to say that i've searched the net for info, and all I could find was some advanced code snipets. However, I would like to start from the begining.
I'm trying to develop a web service which takes XML as input parameter, an returns some other XML.
I developed a WS like that
import org.w3c.dom.Element
public static Element returnElement(Element xml)
{ return xml }Now here's the problem:
I would like to be able to call this WS from other programming languages, like Delphi, C++...
To try and make something like that, I converted xml to String and pass it to a WS. However, this string is too big (about 3200 chars) for HTTP GET to handle.
How can I do that?? Which classes to use? How to represent data in XML form that could be read in Java and other programming languages?
Please, at least, post a link, I just need some basic pointers.
Code examples would be much apreciated.
Thanks a lot in advance,
Good day,
Simon

Hi,
Thanks for your reply. There is a directory on the web logic server's box where the required classes exist. How can I add those to the CLASSPATH? How can I do it from Web Logic Admin Console?
Regards,
Ram

Similar Messages

  • A basic question about web service

    Hello,
    Does all the Web services need to be run under a Web server?
    Or it just needs to be run under a server which has either a web container or a J2EE container?
    I mean if the application does not need to generate HTML pages, but just generate SOAP messages, do I still need to have a web server?
    Thanks!

    A J2EE server runs independently and does not require an HTML/HTTP web server.
    If you're just interested in SOAP, an application server or servlet engine which understands the SOAP specification will be enough.
    --Jon

  • Questions about web services

    Hi! Experts:
    I am at the Web Servivces Navigator.
    I have a basic question about it:
    We are using MI7.1 which has NO Java stack. Therefore we do NOT have the Web Services Navigator.
    How do we use the Web Services for MI7.1?
    Thanks!

    Hi!
    1) SICF lists the BSP services; Web Services are requests between java application to client application.
        Are you sure them are the same thing?
    2) When I compare the services between web service navigator and SICF, I do not see there is any
       relationship.  For example, if I search "AdapterMessageMonitoring" in SICF, I cannot find it.
    I think SICF and  web service navigator  are listing totally different services.
    Therefore my question is that since MI7.1 has NO Java stack (hence NO web service navigator ), how
    are web services handled in MI7.1?
    Thanks!

  • Questions about web services and BPEL in ALBPM

    Hi all,
    We are currently evaluating various BPM products in order to decide which one to use. Currently I am evaluating ALBPM Studio 5.7 and I am running my processes on the embedded engine provided with the studio. I have some questions:
    1. We want to be able to use complex types for the web services that are generated for processes. Will this limitation be solved any time in the future?
    2. We want to be able to use the generated web services directly (that is, without calling the startSession method first). Is that possible?
    3. I could not find extensive documentation about developing BPEL processes. There is only one small chapter in the developer documentation about BPEL processes. Is there any more documentation or sample about how BPEL is used in ALBPM?
    4. I have developed a very simple BPEL process, but when I try to deploy it, I get the error "Activity BPEL receive does not have any incoming transitions". How can I resolve this issue? I guess it may be a problem about my PartnerLink definition.
    5. When I try to catalog a wsdl which imports another wsdl (and when the imported wsdl also imports some xsds from another namespace), I get an error which says that a web service xxx with namespace yyy is not found, but actually the thing named xxx is not a web service but a soap fault. What could be the problem?
    6. Is it possible to write a BP method in PBL for a BPEL activity?
    Thanks in advance and best regards..

    look for anwsers in the other newsgroup posting:
    http://forums.bea.com/bea/message.jspa?messageID=600047258
    MAriano
    Benitez/BEA/BPM/Beautiful

  • Some question about Web service

    Hi experts,
    I have created a Web service about Function Module 'BAPI_EXCHANGERATE_GETDETAIL'.Now I plan to use Transaction code 'WSADMIN' to create a WSDL.But the display result of IE tell me my host could not be resolved by DNS.I don't know how to solve this question, and which happened based on this question.Is there any experienced experts tell me the solution?
    Thanks & Best regards!
    Kelvin

    Hi,
    In your system folder:
    C:\WINDOWS\system32\drivers\etc there is a file hosts;
    Add your server I address and servername in it.
    like:
    193.10.100.70     myserver.com     MYSERVER
    Hope this will resolve the problem. If you do not have authorisation for the same, your network admin will help.
    Regards,
    Renjith Michael.

  • A question about web service

    hi experts,
    I develop a web service based on abap FM. When the 3party programs call it, user need to input the username/password.
    can I config sth for the web service, and user don't need the input user/pass?
    Thanks

    Hi Michael,
    I understand you are worried about security (i.e.people accessing the Service anonymously is something you want to avoid).  Also, you don't want the people to have to manually authenticate themselves (i.e. enter a User ID and Password) to execute the Service.   In this case, you need to use a more sophisticated authentication technique like X.509 SSL Client Certificate or SAP Single Sign On Ticket.  This is a complex subject and not suitable for discussion here.  Here are links to topics that could get you started.
    1. SAP Help Portal link to the topic Security Aspects for Web Services:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/46/a088198f835edfe10000000a11466f/frameset.htm
    2. SAP Help Portal link to the topic Making a Web Service Secure:
    https://help.sap.com/saphelp_nwpi711/helpdata/EN/47/ab7ba049f84848e10000000a421138/frameset.htm
    I hope this helps.
    Best Regards,
    Andy

  • Question about web service and timeouts

    I have a form with a button script that invokes a synchronous soap web service request to an address validation service. It works nicely in testing but I am a bit concerned at what might happen when we go live with respect to the form hanging if the soap server is unavailable or the user is offline.
    From some simple tests in production, where the web service is available yet:
         - in Windows, it times out in Adobe Reader 10.1.1 within about 15 seconds; and
         - In the Mac, with Adobe Reader 10.1.3 it takes around 4 1/2 minutes.
    The latter is not good, as it hangs Reader the entire time.
    Is there some way I can set a timeout in the soap request. Would it be worth considering an async call? If I changed it to async, could I let the user continue to fill the form and then setFocus with an async flag?

    Hi,
    I'm almost there. I dont think that you can do exception handling in FormCalc. How do I trap the error. So far I have
    if (HasValue(Get("http://despaiqo001.development.local:4001/crossdomain.xml")) == 0) then
         $xfa.host.messageBox("not available")
    else
        $xfa.host.messageBox("got it")
    endif
    but when I change the URL so it cant access it, I get a form calc exception. Any samples of how I can script it?

  • Question about web service client

    Hi,
    I am creating the a client to call non wls web serveice.
    First I need to create the client jar using clientgen. My question is when i create the client jar I need the wsdl file. where is the correct place to store the wsdl file? Also I have development and production wsdl file with the different service location. Do I have to store both of the wsdl files? It's a trouble to remember to build the different client jar for development and production (using different wsdl), is there anyway that I can build the client jar once and somehow dynamically configure to use different wsdl (ie service location) in different environment? Thanks

    Hi Holy,
    If you know the WSDL hasn't changed since you used it when running the clientgen Ant task, you can just use the one that is inside the JAR that clientgen produces. To do this, you just need to not specify an argument to the XXX_Impl constructor. For instance:
    AttachmentPartsService_Impl service = new AttachmentPartsService_Impl();
    This has some performance benefits, because it reduces the total number of network calls, the client-side Web Services stack makes. If you specify the URL for the WSDL to the constructor (as recommended by someone else here), the client-side Web Services stack will issue an HTTP GET to get it. Now if the WSDL that is returned uses types that are different than the ones the clientgen Ant task generated classes for (i.e. the ones in the JAR generated by the clientgen Ant task), you are in trouble because the client-side Web Services doesn't generate serialization/deserialization classes (i.e. the ones in the JAR generated by the clientgen Ant task) "on-the-fly".
    The service endpoint for a Web Service call can (and should) be set programmatically, from a properties or configuration file. This will look something like this in the code:
    import java.util.Properties;
    import javax.xml.rpc.Stub;
    private static Properties loadProperties(String fileName) throws IOException
    if (fileName == null || fileName.length() == 0) return null;
    Properties props = new Properties();
    FileInputStream fis = null;
    try
    fis = new FileInputStream(fileName);
    props.load(fis);
    finally
    if (fis != null) try { fis.close(); } catch (Exception ignore){}
    return props;
    public static void main() throws Exception
    Properties props = loadProperties("MyProperties.properties");
    Client client = new Client(props);
    public Client(Properties properties)
    AttachmentPartsService_Impl service = new AttachmentPartsService_Impl();
    AttachmentPartsServiceSoap port = service.getAttachmentPartsServiceSoap();
    if (schemeHostPort == null) schemeHostPort = "http://localhost:7001";
    ((AttachmentPartsServiceSoap_Stub)port)._setProperty(
    Stub.ENDPOINT_ADDRESS_PROPERTY,
    properties.getProperty("production.AttachmentPartsService.serviceEndpointURL"));
    This way, you can have a different properties file for each environment you propagate the web service to, as opposed to saving copies of WSDL files just to have the "correct" service endpoint address. It also has the additional benefit of letting you store the service endpoint URLs for more than just one web service.
    Regards,
    Mike Wooten

  • Question about web service security and certificate registry?

    I'm trying to add security to my web service. I've created a keystore and added a certificate that was signed by a CA that I created (for testing only). The documentation says I need to create a Certificate registry and add my CA as a trusted CA. I can't quite figure this step out. Does anyone know how to do this or am I heading in the wrong direction?
    thanks

    Hi,
    I'm almost there. I dont think that you can do exception handling in FormCalc. How do I trap the error. So far I have
    if (HasValue(Get("http://despaiqo001.development.local:4001/crossdomain.xml")) == 0) then
         $xfa.host.messageBox("not available")
    else
        $xfa.host.messageBox("got it")
    endif
    but when I change the URL so it cant access it, I get a form calc exception. Any samples of how I can script it?

  • Question About Web Service Endpoint

    Is there a way to specify the endpoint of a Web Service that exposes a Data Source?
    For example, if I have a Liquid Data Control jcx with a Java package of foo.bar and the corresponding jws file is also in this package, then the web service endpoint will be http://myserver/myproject/foo/bar/mywebservice.jws.
    Is there a way to change this to say something like http://myserver/myproject/services/mywebservice.jws.
    Thanks.

    JWS files are created by Workshop. Try posting on the Workshop newsgroup or check edocs.

  • Beginner question about Web Services pack just released

    Hi all,
    I have seen that Sun just released Web Services early access Api. I'd like to
    know if this Api are compatible with Weblogic standards for Web Services. For
    example can I use the Sun's JAXM Api with Weblogic for creating and sending Messages?
    or do I have to use weblogic Api to do this?
    Thanks
    Francesco

    It defines what the parameter names should be exposed as in the wsdl.
    Without specifying it JAX-WS for example would just name the arguments as arg0 and arg1 which i not very meaningful to the client programmer who will use your web service.
    - Roy

  • Basic Question about Webi Microcube

    Gurus -
    We have 2-tier landscape : BOBJ Enterprise, Client tools on our laptops.
    Question : When I run the webi query, where is the microcube created, and where do the LOVs reside.
    Thanks.
    -abhi

    Micro cube is a local structure in BusinessObjects which stores query results when we run the report and they LOV / Data resides there unless we purge it.
    It resides on server but we cannot access it to see the data. The only way is to see what MC has to refresh the query.
    Bashir Awan

  • BASIC Questions about JavaMail

    Hi Everyone
    I have some very basic questions about java mail.
    I have a weblogic web server. I think it's version 5 or something like that.
    when a user clicks a form on my application sends some information to my database (via my jsp/java program) , I need to send email to a person?
    Does anyone know how to do that ?
    Could someone please describe the process
    Stephen

    I would recommend that you first read the JavaMail design specifications http://java.sun.com/products/javamail/JavaMail-1.2.pdf
    Then, download JavaMail. It comes with a reference implementation of the API and also very good samples.
    Those samples should get you started very quickly on how to send email from Java program.

  • Question concerning Web Service Deployment

    I have a question on web service deployment as it pertains to multi-client SAP systems.
    I created and deployed a web service in the client that is used for the development of client-independent objects. There are no issues when calling the web service following deployment.
    I am trying to use the same web service on the same SAP system, but on a different client. What is the proper way for accomplishing this? As of right now, the only way I've been able to do this is to open up the desired client and deploy the service again. I tried to take a transport and copy it to the other client using SCC1, but it failed since all the objects referred to client-independent objects.
    Below is the URL of the WSDL that was generated via SOAMANAGER.
    http://svr-sap05-dev.xxx.com:8010/sap/bc/srt/wsdl/bndg_DF2B9EDC2EA40CF1A9B7001CC4459012/wsdl11/allinone/ws_policy/document?sap-client=120
    Client 120 is the client used for development and is where the web service was created and deployed. I would like to use the same web service, but in a different client.
    I tried in changing the logon parameters of the web service using SICF, but the invocation failed. It only works if the client mentioned in the logon data matches the client specified in the URL.
    I am assuming that SAP builds the namespace of the web service using the client specified in the above URL. If this is the case, then I will have no choice but to deploy this service manually in the other client.
    Is something wrong being done or do I have to do the same deployment in the other client?
    Regards,
    Vince Castello

    In Netweaver 7.01 (with SOAMANAGER) you can no longer deploy webservices via STMS.
    You have to login in each client and create endpoints in each one.
    It's a pain, but SAP says it's too risky to implement the solution via STMS or something like that.
    There is a SAP note about this.

  • Basic questions about Infocube

    Hi, everyone.
    I got very basic questions about infocube data handling.
    With infopackage, I extracted all the data about employees from R/3.
    But there were some mistakes during inputting employee data, like positions,
    so I just extracted those employees data once more.
    Now I have two requests in infocube, where the first one has some wrong data.
    Is there any solutions about this?
    I might got it all wrong, so as beginner, any suggestions and explanations will
    be grateful.

    Hi,
    You can manually delete the earlier request by going in the Manage option of the cube. select the request and click on delete icon at the bottom.
    Other option is to make setting in the Infopackage to delete similar or overlapping request.
    Data target tab --> 6th column Automatic loading / deletion of similar request. --> click on the blank icon --> you will get a pop-up --> select the radio button - "delete existing request" --> Select Conditions --> Infosource are same, datasource are same and source system are same, --> selections are "Same or  More Comprehensive "
    Assign points if useful
    Regards
    Venkata Devaraj !!!

Maybe you are looking for