Sample to send MMS with REST

Hi!
Anyone has an example how to build a POST request to send an MMS (with an image attached) with REST?
I have this on documentation but it doesn't tell me how to attach an image:
Message Part Content
*"addresses": ["URI"],<The recipient(s)>*
*"charging": {<This entire attribute is optional>*
*"description": "String",<Text to be used for information and billing>*
*"amount": "BigDecimal",<The amount to be charged>*
*"code": "String",<A charging code, from an existing contractual description>*
*"currency": "String"<A currency identifier as defined in ISO 4217 [9]>*
*"priority": "Default|Low|Normal|High", <The message priority>*
*"receiptRequest": {<This entire attribute is optional>*
*"correlator": "String",<A correlator used to connect the receipt to the inital message>*
*"endpoint": "URI",<The endpoint address to which the receipt should be delivered>*
*"interfaceName": "String"<Descriptive only, a string to identify the type of receipt>*
*"senderAddress": "String",<The sender of the MMS>*
*"subject": "String" <The subject line of the MMS>*
Thanks to all,
Raquel

hi,
attachments are just regular mime parts of multipart/form-data POST request., like the way you upload a file to a servlet.
thanks
kiran

Similar Messages

  • Send SMS with REST

    Hi,
    After I get some problems to install and configure OCSG, I think I can now start do develop, but I still have a problem: I've never work with REST neither OCSG, so I have no idea how to:
    1 - deploy an application in OCSG
    2 - the sintax to send SMS
    Imagine that my OCSG is running on http://localhost:7003/
    I've found this sample:
    org.csapi.schema.parlayx.sms.send.v2_2.local.SendSms request = new org.csapi.schema.parlayx.sms.send.v2_2.local.SendSms();
    SimpleReference sr = new SimpleReference();
    sr.setEndpoint(new URI("http://localhost:8111/SmsNotificationService/services/SmsNotification?WSDL"));
    sr.setCorrelator("cor188");
    sr.setInterfaceName("InterfaceName");
    ChargingInformation charging = new ChargingInformation();
    charging.setAmount(new BigDecimal("1.1"));
    charging.setCode("qwerty");
    charging.setCurrency("USD");
    charging.setDescription("some charging info");
    sendInf.setCharging(charging);
    URI[] uri = new URI[1];
    uri[0] = new URI("1234");
    request.setAddresses(uri);
    request.setCharging(charging);
    request.setReceiptRequest(sr);
    request.setMessage("we are testing sms!");
    request.setSenderName(“6001”);
    org.csapi.schema.parlayx.sms.send.v2_2.local.SendSmsResponse response =
    smport.sendSms(request);
    String sendresult = response.getResult();
    System.out.println("result: " + sendresult);
    If I want to send an SMS in REST, without charging, how can I do that? Anyone have some examples of how to send SMS with REST through OCSG? Please, I need help, my deadline is so short...
    Tks
    Raquel

    The iPhone remembers information about previous contacts.
    Complelely independently, you have a Contacts app with a contacts list.  It sounds like your contacts list has 3 names on it.  You need to add a few names.

  • I'm having trouble sending mms with my iPhone 3GS

    I'm having trouble sending mms with my iPhone 3GS

    This also happened to me after update to IOS 6. So probably it is cause your email outgoing stopped to work.
    So check your outgoing settings and you probably will solve the issue.
    Hope it will be helpful

  • Send MMS with your PC

    Hi Everyone!
    Did you know you can send Multimedia Messages(MMS) through PC Suite?
    If you download the Nokia Multimedia Factory you can create and send MMS from your PC with a connected Nokia phone.
    You need to have Nokia PC Suite installed first, you can get that from here: Nokia PC Suite. Once this is working you can then download and install the Nokia Multimedia Factory and send MMS!
    Please also note you may need to have the correct settings installed on your phone in order to send MMS from the phone, you can get these sent straight to your phone from within PC Suite by going to help - order settings or by going to this page: Order Settings.
    Cheers
    Karim

    You need to contact your service provider for the right MMS settings.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Can't send MMS with 8220?

    There's really two problems here, but the only one I expect to be answered is the issue with sending MMS texts.
    Earlier today my BBP shut of on my randomly while i was playing with it, and it WILL NOT turn back on. I can't even get the LED to light up, so I figure something may be wrong with it internally.
    Now oddly enough, my dad had the same exact model of phone (he thought mine looked cool and got iy, but then moved into an iPhone). So I thought I would just use that instead; the only thing I lost was my contacts.
    On my original 8220, I've been able to take pictures and send them via MMS to any phones - On this one, the exact same type of phone I had before, the option to send MMS is gone. I can try to take a picture and send it directly from the camera menu, but it gives me a notification saying:
    "No message services configured. You will only be able to Save Draft."
    I really don't understand this at all. How can this phone be unable to send MMS while the other had no problem with it? I assume I won't be able to receive them either   I read something about needing an internet plan to use MMS; which I also didn't have on the previous phone.
    Can anyone help me out here?

    Which plan you have? Some carriers don't have the MMS option working, but you are telling us you can with the another one, so call your carrier and ask why you can with one phone and you can't with another one.
    If I help you with any inquire, thank you for click kudos in my post.
    If your issue has been solved, please mark the post was solved.

  • Can I send MMS with only the Wi-fi connection?

    I cant send MMS messages with only my Wi-fi connection, only when I have 3G on my MMS messages really go away and the other person recieves it.
    I just get a to the right of my MMS message when I only have Wi-fi on.
    Can I send MMS messages with only Wi-fi on? (besides Imessages - those always work^^)

    You can send an iMessage using WiFi. You can not send an SMS or MMS

  • Re: Can't share contact and send mms with iphone 4s

    my new ip4s can't send mms and also share contact..
    what should i do?

    how about a reset?  Hold down the home/power button together until you see the apple logo and then release, then wait for the phone to boot back up.

  • How can i send mms with 4g

     

    #1. There is no such thing as an iPhone 4G. There is a 3Gs, a 4 and a 4S. There is no 4G.
    #2. You send it the same way you send any other message. Provided, of course, that your plan includes MMS messaging and you have it turned on in settings. Oh, there are known issues with MMS messaging on some unsupported carriers. T-Mobile in the U.S. is a prime example.
    What happens when you try, where are you, and what carrier are you using?

  • How to send MMS without a picture?

    Am I right that there is'nt the possibility to send a MMS without attachnig a picture? That's a function of all phones I know supporting MMS.
    Post relates to: Pre p100ueu (O2)

    YourBiggestFan wrote:
    That definition is correct but not complete. MMS also offers you the opportunity to send (formatted) texts with several thousand signs
    That would EMS - Enhanced Messaging Service, where you can send formatted text. As to your question the device does not have the ability to send MMS with out some type of Media. As the question you asked about MMS I am unsure why you referenced the "send an email argument". That is not the topic you posted about and as such wouldn't bring that into this and I am confused as to why you made that statement.

  • How to send mms

    how can i send mms with my iphone

    Hi ,, how come I do have such setting.
    All I got :Settings> Messages >Show Preview / Play Alert tone / Character Count.

  • Can not send mms after iMessage upgrade

    I can not  send mms with video except
    To imessage

    Yep, I am having the same issue after upgrading to 6.1.3....can send iMessages with TEXT but as soon as I try to send a photo via iMessage I get "Not Delivered". I can recieve photos via iMessage without any issues.
    I can send photos fine as SMS/MMS, but my carrier changes me for this.
    I have an iPhone 5.

  • Cant receive/send MMS since IOS5 update.HELP :(

    Just recently updated my Iphone 4 to IOS 5.  But now I can receive or send mms to non-Iphone mobiles.  Have resetted Iphone, turned Off, pressed Home&Power button together.  NOTHING!  My iphone is not Jailbroken, just want to send and receive mms messages.
    Was able to send before the update.  Am not happy
    Im with Optus Prepaid if that matters. 
    Frustrated
    J
    Brisbane QLD Australia
    Also tried the sending MMS with no WiFi and on 3G....nope. ddnt work.  MMS Tab is on in Settings too....So can you help?

    Hi J,
    Just had the same problem myself.
    Ended up giving in and called OPTUS.
    I had to go to settings, general, down to reset, reset network settings, enter code.
    Then go back to settings, carrier, turn automatic off, it will search for other carriers, (may take a while), then select a different carrier than yours, let it put a tick next to that carrier, then select your original carrier (may take awhile again), then when tick next to your carrier, turn automatic back on.
    Test and see if you can send yourself an MMS. (always takes a while to go thorugh).
    If that works, pick a friend and try to send MMS to them.
    It appears to be a resetting requirement since the upgrade. Hope its not necessary every upgrade.
    I am a happy girl, now it works.
    Let me know if it works for you...Fingers crossed.

  • Can't get my iMessage to work or send mms

    Can some one tell me plz how to get my iMessage working can't send mms with photos

    Look at Settings > Messages > Send & Receive
    Is your Apple ID set correctly at the top?
    Under "You can be reached by iMessage at:", you should see your phone number, grayed out (because it cannot be changed), but checked (because that is one of your valid addresses).
    Under "Start new conversations from", you should see your phone number as well.  If not, add it there.

  • Cannot send an MMS with Samsung Galaxy III

    Highly frustrating.
    I have turned on mobile data, turned on wi-fi, restarted it and it still doesn't want to send. The send circle just keeps going around and around, for hours! I have 2GB worth of data so it shouldn't be a problem. Can anyone tell me how to make it work because I really have no desire to drive up to Verizon, don't have the time. The phone is less than a week old. >.<

    No luck..>.<
    Perhaps I was doing it wrong. I took out the battery and held down the power button for 10 seconds. Then figuring I read it wrong, I took out the battery, let it sit for 30 seconds, put it back in and held the power button. Just powered on like usual. I really want to be able to send picture messages...>.<
    Date: Mon, 15 Oct 2012 23:18:46 -0600
    From: [email protected]
    To:  (removed personal email address as per Verizon Wireless Terms of Service)
    Subject: Re: Cannot send an MMS with Samsung Galaxy III - Re: Cannot send an MMS with Samsung Galaxy III
                                                                                    Re: Cannot send an MMS with Samsung Galaxy III
        created by B33 in Samsung Galaxy S III - View the full discussion
    Have you Pulled the Battery out and performed a Soft Rest?  by holding the power Button Down while the Battery is out..
    Reply to this message by replying to this email -or- go to the message on Verizon Wireless Community
    Start a new discussion in Samsung Galaxy S III by email or at Verizon Wireless Community
    (deleted personal/private information)
    Message was edited by: Verizon Moderator (M)

  • Hi, I am wondering why my iphone won't send pictures through messages, I have MMS on and I have tried sending it with 3G on aswell and still doesn't work. Someone please help me :)

    Hi, I am wondering why my iphone won't send pictures through messages, I have MMS on and I have tried sending it with 3G on aswell and still doesn't work. Someone please help me :)

    Hey lozza567,
    Thanks for the question. I understand that you are experiencing issues sending MMS messages. The following resource may provide a solution:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Issues with sending and receiving MMS
    You will need these to send and receive MMS:
    - An iPhone 3G or later.
    - iOS 3.1 or later.
    - A cellular data connection. MMS isn't available if you are using only Wi-Fi.
    - A domestic MMS plan from your cellular provider. You may need an international messaging plan to send MMS to an international contact. Contact your carrier for more information.
    - A roaming MMS when using a cellular provider's network different from your billing cellular provider's network. Learn more about roaming and contact your carrier for more information.
    To resolve issues with sending and receiving MMS, follow these steps first
    1. Go to Settings and turn airplane mode off.
    2. Go to Settings > Messages and turn MMS Messaging on.
    3. Go to Settings > Cellular and turn Cellular Data on.
    4. Go to Settings > Cellular and turn Data Roaming on if you are roaming on a cellular provider network different from your billing provider's network.
    5. Verify that you have a cellular data connection in the status bar at the top left of your iPhone.
    6. Go to Settings and turn Wi-Fi off. Open Safari and navigate to www.apple.com to verify that you have a data connection. Turn Wi-Fi back on to continue using Wi-Fi for other features. If your cellular data connection isn't available, follow these steps.
    7. Verify that you can send and receive SMS. If you are unable to send and receive SMS, see the "Issues with sending and receiving SMS" section, above.
    8. MMS may not be available while on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn more about which network your phone supports.
    9. Restart your iPhone.
    10. Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    11. Reseat your SIM card.
    If you are still unable to send or receive MMS, follow these steps
    1. Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    2. Go to Settings > Messages and turn on group messaging if you are sending a group message.
    3. Make sure that you are using the area code with the contact's phone number. When sending messages internationally, you also need the contact's international code.
    4. Verify a "Pay as you go" MMS plan has enough available balance. Contact your carrier if unsure of your MMS plan or available balance.
    5. If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    6. If the issue occurs with a specific contact or contacts, delete and re-create the contact from the Contacts application. Create a new message to the newly created contact and try again.
    7. Back up and restore your iPhone as new.
    8. If your carrier has recently ported your phone number, the porting process may not be complete. Contact your carrier to confirm that the porting process is complete.
    9. Contact your carrier to verify that you are provisioned to send SMS and are in an area with cellular coverage.
    10. Contact your carrier to verify that there are no blocks or filters placed on your wireless account preventing you from sending SMS.
    11. Your carrier may require APN settings to be modified to use MMS. Learn more about when you should adjust APN settings.
    Thanks,
    Matt M.

Maybe you are looking for

  • Installation of SAP Business One client and required administration rights

    Dear community, I would like to kindly ask you for your feedback on the installation of SAP Business One client and its patches on end-user computers. The pain points I have heard so far are the following: - The installation of SAP Business One clien

  • 9.0.3, web.xml, context-param

    Using documentation found on oracle's website, where I needed to have a specific initialization parameter, I setup a context-param in web.xml. In 9.0.2, I got a warning (and posted here but got no response) but was able to continue. In 9.0.3 I can't

  • Unable to view attachments in emails.

    Recently updated the phones software and now I can't view attachments in my emails. My wife has the same phone, 8100 pearl, and she did not update and can still view them. I have tried looking everywhere I can to fix this, but no solution. Solved! Go

  • Getting error message:

    Develop module is disabled,Please renew your membership to reactivate the develop mode.  I thought I bought the program?  So, why do I need a membership?

  • Variant Configuration: Stock must be dispalyed on the charachteristics

    Dear All, I need your help to resolve the query in variant configuration. I have maintained the characteristics & class for the raw material. I have done all  the make to order process from So to Migo And it successfully run but stock is displayed on