How do i get soap message

Hi everyone.
I've generated a web service in netbeans 5.5 with SAAJ.
I've run my web service client. The incoming message (service soap response) is
empty.
The problem is, my soap message (payload) is not appearing in the soap response.
I expect to see....
<?xml version="1.0" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://mywork">
<soapenv:Body>
<ns1:getMessageResponse>
<document>transfer<document>
<number>123456<number>
<telephone>555-12345<telephone>
</ns1:getMessageResponse>
</soapenv:Body>
</soapenv:Envelope>
But i receive the "return" element only, without payload.
<ns1:getMessageResponse>
<return/>
</ns1:getMessageResponse>
My service and client method is listed below.
Service....
public SOAPMessage getMessage() {
SOAPMessage message = null;
try {
MessageFactory mf = MessageFactory.newInstance();
message = mf.createMessage();
SOAPPart sp = message.getSOAPPart();
SOAPEnvelope env = sp.getEnvelope();
SOAPBody body = env.getBody();
SOAPHeader header = env.getHeader();
header.detachNode();
SOAPFactory sf = SOAPFactory.newInstance();
Name ElName = sf.createName("getMessage", "ns1", "http:mywork");
SOAPBodyElement sbe = body.addBodyElement(ElName);
SOAPElement name = sbe.addChildElement("name");
name.addTextNode("transfer");
SOAPElement document = sbe.addChildElement("document");
document.addTextNode("123456");
SOAPElement telephone = sbe.addChildElement("telephone");
telephone.addTextNode("555-12345");
message.saveChanges();
} catch (Exception e) {
System.out.println(e.getMessage());
return message;
Client Request....
public static void main(String[] args) {
// TODO code application logic here
try {
SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
SOAPConnection con = scf.createConnection();
MessageFactory mf = MessageFactory.newInstance();
message = mf.createMessage();
SOAPPart sp = message.getSOAPPart();
SOAPEnvelope env = sp.getEnvelope();
SOAPBody body = env.getBody();
SOAPHeader header = envelope.getHeader();
header.detachNode();
SOAPFactory sf = SOAPFactory.newInstance();
Name ElName = sf.createName("getMessage", "ns1", "http:mywork");
SOAPBodyElement sbe = body.addBodyElement(ElName);
message.saveChanges();
URL urlep = new URL("http://localhost:8080/jaxws05/jaxws05?WSDL");
SOAPMessage reply = con.call(message, urlep);
con.close();
} catch(Exception ex) {
// TODO handle custom exceptions here
Can anyone please help? , Thanks. --Nelson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

I'd suggest you post this in the workshop newsgroup.
I don't believe Workshop supports SOAP w/attachments in the current
release, but you should ask in the workshop group for suggestions.
-- Rob
John wrote:
I'm trying to create a web service which takes an attachment and in
the BEA site, they have an example called "filetransfer" which does
what I'm looking for.
The example uses a SOAPMessageContext.getMessage() and
SOAPMessage.getAttachments(); however, there doesn't seem to be any
properties or methods which returns any of these object types.
Are handling file attachments beyond the scope of weblogic workshop,
or is there another way around this using workshop?
Thanks.

Similar Messages

  • Hey How Do I Get Group Message On The IPhone 4s because some reason it doesn't want to show . First i did is setting then messages  it only show imessage and message count )HELP)

    ey How Do I Get Group Message On The IPhone 4s because some reason it doesn't want to show . First i did is setting then messages  it only show imessage and message count )HELP)

    At the bottom of the page Settings > Messages you should have a section headed "SMS/MMS" Turn MMS messaging on then you can turn group message on.

  • How do I get my messages to come through on my ipad Via my mobile number? They always used to but I've had to change all my Apple ID if that has anything to do with it? In iMessages it will only take an email address!

    How do I get my messages to come through on my ipad Via my mobile number? They always used to but I've had to change all my Apple ID if that has anything to do with it? In iMessages it will only take an email address!

    Hi EmilyWick123!
    Here is an article that will help you address this question about linking your Apple ID and phone number:
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/ht5538
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • I have an iMac OS 10.9.5 - Every time I turn on my system I get the message that it can not access icloud and to fix it using iCloud preferences. I do not want to access or use iCloud, how do I get the message to discontinue?

    I have an iMac OS 10.9.5 - Every time I turn on my system I get the message that it can not access icloud and to fix it using iCloud preferences. I do not want to access or use iCloud, how do I get the message to discontinue?

    Hello mrmacjohn,
    Verifying that any iCloud account that may be signed in is signed out should resolve this error.
    On your Mac, open iCloud preferences, then click Sign Out.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Cheers,
    Allen

  • How do I get received messages from others to show up on my different Apple devices, such as my iPhone

    How do I get received messages from others to show up on my different Apple devices, such as my iPhone or iPad or iPod Touch, etc. I can see their reply on the device I was using at that moment but not on the other devices even iMessaging is turned on. Is there a way to refresh to incoming messages when one picks up one of their other Apple devices?

    Hi there lkbluntzer,
    You may find the information in the article below helpful.
    Send and receive messages
    http://help.apple.com/iphone/7/#/iph01ac18d71
    See what time a message was sent or received. Drag any bubble to the left.
    -Griff W. 

  • Ever since I enabled iMessage on my Mac Airbook, I can no longer receive text messages from the iMessage people on my iPhone, only on my iMessage now!!  How do I get the messages to reach both iMessage and iPhone??

    Ever since I enabled iMessage on my Mac Airbook, I can no longer receive text messages from the iMessage people on my iPhone, only on my iMessage now!!  How do I get the messages to reach both iMessage and iPhone??

    We are suffering very similar issues when communicating from my iphone to a friend who has both iphone and iPad enabled.
    As long as I reply to an existing text chain, then it is visible on the target iphone.  If I SMS the phone number, it gets routed to the IPAD!!   And NO, I should not have to disable imessage when I want to send an SMS!!

  • Topic area: Apple Mail.  Question:  How do I get the message preview window to display to the right of my list of email messages?

    Topic area: Apple Mail.  Question:  How do I get the message preview window to display to the right of my list of email messages? i.e. to preview whatever message is currently highlighted in the center window list of messages?

    At present there is no preference option available to move the preview
    pane to right side of the mail window.
    Best.

  • How do I get my messages to work again?

    How do I get my messages to start working again? It just says server can not complete.

    This could be a complicated problem to solve, as there are many possible causes for it. Test after taking each of the following steps that you haven't already tried. Back up all data before making any changes.
    Before proceeding, test on another network, if possible. That could be a public Wi-Fi hotspot, if your computer is portable, or a cellular network if you have a mobile device that can share its Internet connection. If you find that iMessage works on the other network, the problem is in your network or at your ISP, not in your computer.
    Step 1
    Check the status of the service. If the service is down, wait tor it to come back up. There may be a localized outage, even if the status indicator is green.
    Step 2
    Sign out of iMessage on all your Apple devices. Log out and log back in. Try again to sign in.
    Step 3
    Restart your broadband device and your router, if different. You may have to skip this step if you don't control those devices.
    Step 4
    From the menu bar, select
     ▹ About This Mac
    Below the "OS X" legend in the window that opens, the OS version appears. Click the version line twice to display the serial number. If the number is missing or invalid according to this web form, take the machine to an Apple Store or other authorized service center to have the problem corrected.
    Step 5
    Take the steps suggested in this support article. If you don't understand some of the steps or can't carry them out, ask for guidance.
    Step 6
    From the menu bar, select
     ▹ System Preferences ▹ Network
    If the preference pane is locked, click the lock icon in the lower left corner and enter your password to unlock it. Then click the Advanced button and select the Proxies tab. If the box marked SOCKS Proxy is checked, uncheck it. You don’t need to change any other settings in the window. Click OK and then Apply. Test.
    The result may be that you can't connect to the Internet at all. Revert the change if that happens, or if iMessage still doesn't work. Remember that you must Apply any changes you make in the preference pane before they take effect.
    Step 7
    Select from the menu bar
     ▹ System Preferences… ▹ Flash Player ▹ Storage
    and click
    Block all sites from storing information on this computer
    Close the preference pane.
    Step 8
    Make sure you know the ID and password you use with iMessage. Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Use the search box in the toolbar of the Keychain Access window to find and delete all items with "iMessage" in the name. Log out and log back in.
    Step 9
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    If iMessage worked in the guest account, stop here and post your results.
    Step 10
    Boot in safe mode and log in. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. After testing, reboot as usual (i.e., not in safe mode) and test again.
    If iMessage worked in safe mode, but didn't work when you booted out of safe mode, stop here and post your results.
    Step 11
    Reset the NVRAM.
    Step 12
    Reinstall OS X.
    Step 13
    If none of the above steps resolves the issue, make a "Genius" appointment at an Apple Store, or contact Apple Support.

  • How do i get text messaging through my macbook pro?

    how do i get text messaging through my macbook pro?

    Welcome to Apple Support Communities
    If you have an iPhone, iPad or iPod touch and you use iMessage, you can use it in your Mac if you want. OS X Mountain Lion includes Messages, that allows you to use iMessage.
    First, check that your computer is supported > http://www.apple.com/osx/specs If so, open  > About this Mac, and see what OS X version you have:
    10.5 or older: you have to upgrade first to Snow Leopard > http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    10.6 or 10.7: open  > Software Update, and install the most recent version. Then, open the App Store and purchase OS X Mountain Lion.
    10.8: you are already using OS X Mountain Lion, so open the Messages app.
    While OS X Mountain Lion is being downloaded, make a backup of your files and check that your apps are compatible > http://www.roaringapps.com
    If you aren't referring to iMessage, you can't send text messages in your computer

  • I get a download error on the creative cloud desktop app.  When I click reload applications it remains the same.  How can I get this message to be removed?

    I get a download error on the creative cloud desktop app.  When I click reload applications it remains the same.  How can I get this message to be removed?

    Hi Bericala,
    Same issue has been discussed in the below mentioned link.
    1) Creative Cloud "Download Error" message
    2) Creative Cloud - Download error - stubborn error
    Let me know if it helps.
    P.S - If this or any other response helps answer your question, please take a moment to mark the response as helpful or correct to make it easier for future users to find the solution to the same issue
    Thanks,
    Eshant Jindal

  • I have 2 games Words with Friends and Cityville that receives a Pop-up message form iTunes...  "Connect to iTunes to use Push Notifications" and will not allow me to exit out of the app or play.  How can I get this message to STOP?

    I have 2 games Words with Friends and Cityville that receives a Pop-up message form iTunes...  "Connect to iTunes to use Push Notifications" and will not allow me to exit out of the app or play.  How can I get this message to STOP?

    Yes - I connected my phone to my computer / Itunes and went into the apps section, but from there I have no idea how to manage the push notifications.  I even tryied going into itunes that is installed on my phone.  I still cannot find anyplace to manage these popups.  I have also gone into settings - notifiations - and tried turning all notifications for these apps all off but that didnt work either.  Any guidance is MUCH appreciated - Im not sure where to go from here.

  • How to send a SOAP message with attachments

    How to send a SOAP message with attachments thru webservice using axis-1_3 can any one sujjest.............................

    Please refer
    http://www.javaworld.com/javaworld/jw-09-2003/jw-0912-webservices.html
    http://xml.sys-con.com/read/40315.htm

  • TS3276 I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    Make sure Mail is selected in System Preferences > iCloud

  • HT5129 I keep getting the message MobileMe has been discontinued - iPhoto willmove albums you have published to MobileMe Gallery. . .  but I have not knowingly published any photos to MobileMe.  How can I get this message to stop.  It's getting annoying.

    I keep getting the message MobileMe has been discontinued - iPhoto willmove albums you have published to MobileMe Gallery. . .  but I have not knowingly published any photos to MobileMe.  How can I get this message to stop.  It's getting annoying.
    Also, how can I remove duplicate photos in an album without doing it manually?
    Thanks!

    When the prompt pops up next time you start iPhoto select Learn more. Then click on iPhoto preferences and select the Accounts tab. Delete your MM account and the quit iPhoto. Next time you open iPhoto the problem should be eliminated.

  • Outlook closes and will not download a particular message.How can i get that message to stop coming to my inbox?

    outlook closes and will not download a particular message.How can i get that message to stop coming to my inbox?

    Hi,
    May I ask your intention by doing this? Is the particular message harmful to your computer?
    Which type of email account are you using? If you want to prevent a particular message from being downloaded to Outlook, we can login to the web interface of your email account and then remove the particular email from your Inbox.
    If I've misunderstood something, please feel free to let me know.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for

  • Processing of large messages

    Hi, is anyone experienced in boosting performance of large message processing in XI? I've got messages of about 3MB size. Their processing in XI takes about 5 minutes. The respective mappings are quite simple. I have seen that I can configure a speci

  • Order of elements in procedure specification

    Hi, In a procedure, create or replace procedure my_proc is begin, before begin, what's the order of the declarations? So functions must be declared before / after the cursors? and exceptions/variables? i know there is an order but i did not found the

  • How to get Installation Media for Windows 7 Home Basic?

    I Have a Lenovo G470 laptop which previously came with Genuine Windows 7 Home Basic. But Once My OS was corrupted and I take my laptop to Lenovo Service Center, they installed Windows 7 Home Premium In my laptop. I never faced any Activation Issue af

  • Control Function

    hi,          What is vendor a/c control function? what is mat. type control function?

  • An error occurred searching the certificates for the server. ...

    Hi, I am using DSEE 6.2 in Fedora 7 Each time I access the "Security" tab of my server in DSCC. I get the following error: "*An error occurred searching the certificates for the server. An authentication error occurred connecting to xxxxx. Check that