Sending Vectors Over Web Services?

Can you transfer a Vector over WebLogic web services? I have been able to transfer
an array of JavaBeans, but not a vector.
Please advise,
Dave

The WLS web services documentation mentions the types you can exchange using RPC
style web services. They are
Java primitives
Java primitive wrappers
Java bean instances (nested beans as well)
Arrays of the above except prmitive wrappers
Document, Element and DocumentFragment
This means you can't exchange vectors or collection. This may be for supporting
inter-operabibility with other SOAP toolkit providers.
Thanks
Meeraj
"David Mrozek" <[email protected]> wrote:
>
Can you transfer a Vector over WebLogic web services? I have been able
to transfer
an array of JavaBeans, but not a vector.
Please advise,
Dave

Similar Messages

  • How to send request to web service using .pem certificate.

    Dear All,
    I have a .pem, WSDL file and (Request and Response format), this files are provided by the customer, now I have generated the ServiceClass using WSDL file using wsdl.exe.
    Now when I send the request I am getting error as "The underlying connection was closed: An unexpected error
    occurred on a send" when I told my customer to remove the certificate validation from their web service the "Request
    and Response both are working fine".
    When I opened the .pem file in notepad the content was 
    -----BEGIN CERTIFICATE-----
    dfkhdfhsdfghgfjhAklajdaJHZKkjjHAKJhjkhkjhkjhkjhkjJKJHKJ......................................
    /R-----END CERTIFICATE-----
    and nothing else was there as per my client my code is proper for sending request to web service but the using of file i.e .pem file is not proper.
    I want to know what else I have to do my customer have given me only .pem file with -----BEGIN CERTIFICATE-----  and -----END CERTIFICATE----- nothing else in the file.
    Can anybody please help me in this, below is my code snapshot.
    try
    var pem = System.IO.File.ReadAllText(Application.StartupPath + "\\server_selfsigned.pem");
    byte[] certBuffer = GetBytesFromPEM(pem, "CERTIFICATE");
    SMSService sms = new SMSService(txtURL.Text.Trim());
    sms.ClientCertificates.Add(new System.Security.Cryptography.X509Certificates.X509Certificate2
    (certBuffer));
    SMSRequest smsReq = new SMSRequest();
    smsReq.UID = "2000";
    smsReq.SMSDetails = new SMSRequestSMSDetails { MessageText = txtMessage.Text.Trim(), MobileNumber = txtMobile.Text.Trim() };
    SMSReponse smsRes = sms.sendSMSOperation(smsReq);
    MessageBox.Show(smsRes.Code + " = " + smsRes.Message + " = " + smsRes.Status);
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    Thanks in advance.
    Best Regards,
    Manoj Gupta.

    Hi,
    This issue might be due to the invalid .pem certificate file.
    Make sure to include the beginning and end tags on each certificate.                   
    The result should look like this:                
    -----BEGIN CERTIFICATE-----
    (Your Primary SSL certificate: your_domain_name.crt)
    -----END CERTIFICATE-----
    -----BEGIN CERTIFICATE-----
    (Your Intermediate certificate: DigiCertCA.crt)
    -----END CERTIFICATE-----
    For more detailed information, you could refer to:
    https://www.digicert.com/ssl-support/pem-ssl-creation.htm
    Regards

  • Need help in design the scenario sending data to web service

    Hello All,
    I need to send data to web service and get the response back.
    i want to use HTTP to soap Scenario.Please let me know the necessary steps in the scenario.
    Thanks and Regards,
    Chinna

    Hi Chinna,
    > i want to use HTTP to soap Scenario.Please let me know the necessary steps in the scenario.
    Split this into 2 scenarios
    1. HTTP to SOAP (Request) treated as Asynchronous.
    2. SOAP to HTTP (Responce) treated as Asynchronous.
    For HTTP to SOAP synchronous scenario
    Here the receiver side request and responce structures no need to create, the receiver client will provide you the XSD file, on that XSD file having the request and responce message structures, so you have to import that to XI server as External definition.
    For sender HTTP you have to create 2 data types, 2 message types as well as 2 message interfaces, 2 message mappings for request and responce messages and 2 service/Message interfaces (HTTP is outbound and SOAP is inbound).
    Configuration objects are same.
    Regards
    Ramesh

  • MDM over Web service

    Hello Everybody,
    I am new in MDM. and like to know if is possible do change data from xi over web service in MDM.
    I am using MDM SP4 , mySAP2005 and like to import data(Matmas) from XI to MDM. but MDM and MySAP2005 are not connected, could you give me input !
    which possibility gives to import master data from mySAP2005 over XI to MDM  in this case ?
    thank you in advance
    Dominique

    Hi Dominique,
    have a look at the configuration and IT scenario guide in our <a href="http://service.sap.com/installmdm">MDM Documentation Center</a>. both documents give you a hint how.to setup MDM and ERP together with XI. In fact everything you'll need delivered as a standard.
    Kind regards
    Michael

  • Receive asynchronous message from JMS  topic over web service

    Hi,
    I have a JMS topic and I want to expose it as a web service so that clients can
    make durable subcription to the topic and receive messages asynchronously. What
    is the best way of doing this ? Is there a portable (to other containers) way
    of do this ? If not, is there a web logic specific way of doing this ?
    Thanks,
    Siva

    So you expect clients to be receiving SOAP messages over HTTP? In this
    case, the clients are really servers that are capable of servicing SOAP
    requests, correct? And how about the senders: are they also using
    SOAP/HTTP to send messages that are delivered to the receivers?
    It should be possible to write this yourself using JMS not as the
    transport, but as a mechanism for distributing the message to a set of
    clients. You'll need to implement a Web Service for publishing to a
    topic, an operation for registering an end point to recieve messages,
    and an MDB (or other form of JMS subscriber) executing on the server to
    relay the message to the end point.
    Siva wrote:
    Hi,
    I have a JMS topic and I want to expose it as a web service so that clients can
    make durable subcription to the topic and receive messages asynchronously. What
    is the best way of doing this ? Is there a portable (to other containers) way
    of do this ? If not, is there a web logic specific way of doing this ?
    Thanks,
    Siva

  • Sending vectors over an Http connection

    Hello, I want to send vectors from my midlet over a http connection to a servlet. Is it possible by using a DataOutputStream in combination with an ByteArrayOutputstream? is it possible to send a vector over an http connection from j2me to jsee?

    I guess what you're saying is that you'd like to use a ByteArrayOutputStream wrapped by a ObjectOutputStream, marshal in the java.util.Vector, get the byte array and send it via HTTP somehow, and then do the reverse on the other side.
    That will work if you need to use HTTP. Otherwise, you could setup a non-HTTP connection or use a higher level system like RMI or RMI-IIOP.
    - Everett

  • Connecting and sending data to web service

    Hi,
    I have to implement the functionality in PDF document to connect with the web service and send the form data in xml format on Click event of a button inside the form.
    During the initial development and testing I have found that document can only connect with the Web Service from within LiveCycle Designer or Adobe Pro. It doesn't work with the Reader.
    After surfing the internet I have come to know that Reader extensions are required along with Adobe Reader to communicate with the web services. Am I right?
    Furthermore, what I have to do is to distribute the PDF form to a number of people who will fill the form and submit the form data by clicking the Submit button (which will internally communicate with the web service to send data) on the form. So if extensions are required to communicate with web services from Reader, then what I am assuming is that all those people must have extensions installed on their machines along with Reader.
    On some forum I have also read that you only need to install the Extensions on the Designer machine and they are not compulsory to be on every client machine. i.e. Exntesions enable the web services communication features in the PDF form during design time. Is it true?
    Thanks in anticipation,
    Qarshi

    Be careful, your question should be posted in "LiveCycle Reader Extensions" forum. LiveCycle Data Services doesn't deal with these features.
    Nevertheless, to use webService calls from a PDF opened in the free Adobe Reader, you need to Reader extend your form.
    You can use Acrobat Pro to extend it if the PDF will not be used by more than 500 people.
    If you plan to reach more than 500 people, then you must consider LiveCycle Reader Extensions. This limitation is explained in the Acrobat EULA.
    The final users only need the Adobe Reader, they won't have to install any extension or plug-in.

  • Axis and Mime to send Images with Web Services

    Hi, I have been reading a lot of information about MIME and how I have to send images or attachaments with Web Services, and I am a little lost. I would to find a simple example to use MIME with AXIS 1.4 . Do anybody know where I can find some example to use attachements with AXIS???
    Thank you very much in advance

    Hi,
    When you are using JAX-WS, there is a tool wsimport, with which you are going to generate the artifacts required to implement the web service.
    When you pass the WSDL as a parameter to the wsimport tool, it will be create the required beans also(JAXB Objects).
    So need of any other external implementation of JAXB when you are working with JAXWS
    Thanks,

  • FM to send Timestamp to Web Services

    Hi Experts,
    Ref:
    Calling EP Web Services from BW 3.5
    I need a small Function Module. Please check the above link for the requirement. Can any one provide me the code required for that function module.
    Thanks in Advance.
    Regards,
    Prasad.

    Hi,
    As per your previous update this was working for the only one user i.e. agent B.
    This should also work for the two user. Please check the authorizations with the basis team regarding this
    ( Authorization of user A, B and who executing the SAP_WAPI_FORWARD_WORKITEM )
    Alternate Solution :
    Make user B active substitute user of user A. Now whenever the user A receive the workitem user B also get the save workitem autometically.
    You can use the following FM to maintain the substitition.
    SAP_WAPI_SUBSTITUTE_MAINTAIN   ( for new substition )
    SAP_WAPI_SUBSTITUTE_ACTIVATE  ( make active so that user B receive the workitem of user A at realtime )
    SAP_WAPI_SUBSTITUTE_DEACTIVATE ( Deactive it, substitution will be there but User B will receive the workitem of user A )
    SAP_WAPI_SUBSTITUTE_DELETE ( Delete substitution )
    Thanks and regards,
    SNJY

  • Using Vector in Web Service ???

    i have a class that i would like to publish as a WS ...one of the methods returns an Object
    OrderData
    //private member variables
    private int orderId;
    private Date orderDate;
    private Date shipDate;
    private double orderTotal;
    private Vector orderLines; <<<<< note Vector Types here containing line details of order
    when i try to generate the WSDL file i get.......
    WSDL generation ERROR
    http:xml.apache.org/xml-soap:Vector already exists
    ...so i figured that i would have to import Vector class from somewhere in the org package....?
    but now i realise this is not the case....
    please help.......i have no idea whe the error is refereing to ???

    nvr mind.....i switched the Vector for a resultSet......
    though i would like to know why the Soap server had a prob with Vector ?

  • How to send Attachments vis web service response?

    Have created a custom plsql type webservice.
    How do we send a file(say a blob object) as an attachment?
    Cannot be sent as a blob object return parameter.
    Any body have encountered this requirement?

    Hi Abdullah,
    this is only possible if there is an extension scenario for the Query "Outbound" available. You added already the "Inbound" Query but I am pretty sure that there is a second scenario for the QueryCustomerIn for the "Outbound".
    Just check out the available options of the process extension scenario you are using already and you will find it. Check it, activate your xbo and the response should also have your field
    Cheers,
    Jens

  • Problem in passing/returning objects over dynamic web service call

    Hi Friends,
    I am beginner in java web service.
    Here is the problem I am facing when I pass/return user defined objects to remote web service method using dynamic we service call.
    The client can call the remote web service method in 2 ways.
    1. By generating client stubs using WSDL file
    - In this case, I am able to pass/return the user defined objects to remote method without any issue only when the server side web services are deployed in any server(jboss)
    - But in java 1.6 & above, the web services can be deployed without server using endpoint. In this case, I am not able to pass/return objects over web service calls.
    2. Without generating client stubs (dynamic web service call)
    - This will establish a connection at run time using the given WSDL file (I have attached the document). I have to form an XML(This will contain API name, arguments) string as input at run time
    - In this case, it allows only string as argument while passing & returning.
    Please let me know if you can help me on this.
    Regards,
    pani

    I'm not sure about your question, but this might help:
    [http://forum.java.sun.com/thread.jspa?threadID=5251188|http://forum.java.sun.com/thread.jspa?threadID=5251188]
    You might also want to read on JAXB.

  • Sending JMS messages as web services

    I am trying to read a JMS topic, retrieve an XMLBean from the queue, and send it
    via web services developed in Workshop. Everything seems to deploy fine, but
    when I post a message to the topic, it just disapears. No logging, no movement
    to the specified error queue, and println doesn't print. How do I do this?

    Hi Neil,
    Have you gone through the tutorial "how to" [1] on this subject? There
    is a basic JMS/webservice example [2], outside of WLW, that may be
    useful in validating your JMS/server configuration. Also, be sure to
    check the server log file for warning/error messages.
    Hope this is of some value,
    Bruce
    [1]
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/howdoi/howExchangeMessageswithaJMSQueueorTopicfromaWebService.html
    [2]
    http://webservice.bea.com/message.zip
    Neil Hornbeck wrote:
    >
    I am trying to read a JMS topic, retrieve an XMLBean from the queue, and send it
    via web services developed in Workshop. Everything seems to deploy fine, but
    when I post a message to the topic, it just disapears. No logging, no movement
    to the specified error queue, and println doesn't print. How do I do this?

  • How to bind list data to XML Web service request

    How do I bind specific columns in a DataGrid to the Web
    service request? I'm having trouble finding any documentation that
    addresses that specific pattern, i.e. sending a complex list to the
    server via a Flex Web service send() command. I'm fairly new to
    Flex programming and don't know if what I want to do is possible.
    Here what I've been able to do so far.
    1. Using a Web service called a service on the server and
    retrieved a complex list.
    2. Poplulated a DataGrid with the result
    3. The user has selected multiple rows from the DataGrid
    using a checkbox column
    4. The user pressed a button that calls a Web service send().
    This Web service should only send data from only two columns and
    only for those rows the user has checked.
    5. I can loop over the DataGrid and find the selected rows
    and put them in another ArrayCollection called 'selectedRows'.
    The issue is that I don't know how to bind 'selectedRows' to
    the Web service. Right now I'm reading up on "Working with XML" in
    the Programming with ActionScript 3.0 chapter. But I'm just fishing
    here. No bites yet.

    Don't bind. Build the request object programatically, as you
    are doing with your selectedRows AC, and send(myObject) that.
    Tracy

  • How to create Listening Channel for XML/web services repsonse

    Hi , I am new to B2B 11g, wish to ask tht,
    I followed the B2B tutorial by using Generic File and it working fine. However,
    if I wish to receive XML from trading partner thought web server, how should i configure the listening channel, which protocol should I use.
    And may any1 kindly reference me to any link or info?
    Thanks you.

    however..if remote partner going to send me thought web services and not thought folder, should I do anything on my B2B? did i need to specific any extra listening channel?No. No additional configuration is required for receiving files over HTTP. Just ask your TP to post files over one of the below URL's -
    http://hostname:soa_server_port/b2b/httpReceiver or http://hostname:soa_server_port/b2b/transportServlet
    If you just want to test your B2B whether it is properly configured then best way is to have another B2B setup (may be a new domain) which will mock your TP setup. From that B2B setup send message to your B2B over HTTP (on any of above URL's) and see if gets processed successfully.
    If you just want to test whether your B2B is ready to accept messages over HTTP, then access the above URL's through browser and make sure that you see below message -
    "B2B Server is ready to accept HTTP messages from the Trading Partner"
    Regards,
    Anuj

Maybe you are looking for