GetCalls is good, but...
Hi, Iam using code below to invoke a service dynamically. Calling Service method getCalls should preconfigure all settings according to the documentation. This works fine for all settings but the SoapAction. To get this to work I have to hardcode the Soapaction properties before I invoke the operation.
getCalls would be a great function if it worked properly, what could be wrong here?
thanks
/Rassol
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(
new URL("http://172.20.13.20/AscomSS/AscomSS.asmx?WSDL"),
new QName("uri://ascom.se/SS", qnameService));
Iterator ports = service.getPorts();
QName port = null;
while (ports.hasNext())
port = (QName) ports.next();
System.out.println("Registered port: " + port.toString());
//System.out.println(port.getLocalPart());
//if (port.getLocalPart().equals(portName))
// break;
Call[] calls = service.getCalls(port);
for(int i = 0 ; i < calls.length; i++)
System.out.println("Operation Name: " + calls.getOperationName().toString());
System.out.println("Endpoint: " + calls[i].getTargetEndpointAddress());
System.out.println("Return Type: " + calls[i].getReturnType().toString());
System.out.println("Port: " + calls[i].getPortTypeName().toString());
//System.out.println("SoapAction: " + calls[i].SOAPACTION_USE_PROPERTY + " " + calls[i].SOAPACTION_URI_PROPERTY);
Iterator propNames = calls[i].getPropertyNames();
while(propNames.hasNext())
System.out.println("PropName: " + (String)propNames.next());
System.out.println("Value: " + (String)calls[i].getProperty( (String)propNames.next() ) );
calls[0].setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
calls[0].setProperty(Call.SOAPACTION_URI_PROPERTY,"uri://ascom.se//reportError");
Boolean result = (Boolean)calls[0].invoke(new Object[0]);
if(result.booleanValue())
System.out.println("yey");
else
System.out.println("ney");
Hi,
I've tried this too. The problem is not that an error is generated as such although it is (if you don't manually set the soapAction), you get:
java.rmi.RemoteException: WSDLReader:The operation requested in the Soap message with soapAction isn't defined in the WSDL file. This may be because it is in the wrong namespace or has incorrect case
It's more that you'd expect it to fully parse the WSDL for you, so you shouldn't have to enter it manually! Why doesn't it do this?
Chris
Similar Messages
-
I have i phone 4s i there is problem of wifi my wifi is not working when i go to the wifi there is no working on off when i update it as a 6.1 ios on that time again it was good but after 2 days again the same problem i am too tired and i also reset network setting but nothing gonna be worked
Sounds like the device was dropped at some point and damaged as a result.
Take it to Apple for evaluation and a replacement. -
Can I connect a 27" Cinema Display to an ageing iMac? I have a Mini-DVI to DVI Adapter fronting a Kanex C247DL to complete the MIni-DVI to mini display link. Sound is good but screen is black.
Hey phil staton, highland,
Thanks for using Apple Support Communities.
Apple computers: Troubleshooting issues with video on internal or external displays
http://support.apple.com/kb/ht1573
Have a nice day,
Mario -
My iphone 6 connects to the car via bluetooth, the music works good, but the phone calls does not work. It looks like it is working but doesn't. I have tried in my Hyundai Sonata and a Dodge Dart rent car and get the same results. I updated the last 8.0.2. It worked the first day i had the phone, and then i updated to Ios 8.0.2 and it quit working.
Now when i get in the car, it acts like it is connected and makes the same call it was on after syncing to bluetooth, but it really isn't on a call. This is happening on both cars.
Does anyone know if this is the phone and i need to take it to Apple or if there is an issue that Apple is working on getting a fix for?
My son in law has the exact same phone as me, we both got the on 10/6, he had a Dodge Dart and his is working via bluetooth.
Someone HELP please, as i consider this a safety issue by not having my calls go to bluetooth.We had the same problem, but figure out the solution.
You MUST have at least 1 song added to your ITUNE! After you add a free song, then everything else should work as normal!
Hope this helps! -
My 1st Generation time capsule won't connect to the internet thru a new motorola sb6121 - get continuously flashing yellow light. Using a router in between the modem and capsule yields good but slower connection to internet. Any thoughts?
Thanks for your response
Let me give the history - I started with an Apple Express being fed thru a D-Link EBTR 2310 cable Router from an RCA DCM315 Modem (Pure). Comcast service all the way.
Got the 1st generation TC in 2008 and merely replaced the Airport Express with the TC. Worked ok
A year or two ago I did try removing the modem and feeding the TC directly from the modem. Resulted in the same condition I have now - Continuous flashing amber on the TC. So I put the router back in the chain.
Some time later, at the recommendation of a Comcast rep, I replaced the router with (a Belkin F5D 5231) to see if speed and dropout problems would be improved. I thought it helped some at the time but now I am not so sure.
Last week I decided to see if a new modem would help with download speeds. So I got another pure cable modem (Motorola SB 6121- high on the Comcast recommended list).
Got up and running easily with Comcast help and with the modem connected directly to a computer.
Next I put the TC in the link and again could not get past the TC continuing to flash amber. Although I did get connected to the internet with this configuration I lost connection two both of my printers - one connected by USB and the other wirelessly to the TC. Again everything works fine when I put the Belkin router back in the system.
However with the router in there, the modem shows the downstream connection to be 10/100 ethernet speed. (Modem light changes color for indicating speeds.}
I have gone thru all of the combinations of powering down/ up, but all stays the same.
I can live with what I have but something still doesn’t seem right.
Thanks again -
Connection To Airport Extreme Good, But It No Longer Sees Internet?
I have my airport extreme daisy chained to my verizon wireless router with an Ethernet cable, and this has worked great until now. My verizon wireless router is still working and connected to the Internet, but my airport extreme no longer sees the Internet yet I am still able to connect to it with my Mac book.
When I connect wireless to the AE it shows a connection to it, but I am unable to access the Internet. When I connect wireless to my primary router I am able to access the Internet.
This is why I believe the AE is not connected to the Internet.
I tried the unplug for 15 minutes and plug it back in with no luck. I do have a green light on, I am showing a connection to it from the Mac book, but still no email no web surfing, no Internet. If I unplug the Ethernet cable from the back of the AE and connect it directly to my Mac book Internet works just fine. So the feed is good, but no wireless Internet coming from the AE. -
I have recently transferred data from my old Mac to my new one. The result was good, but I have 2 users now, whose data I want to merge into 1 single user, so to avoid having to switch from one user to the other to view and use certain files. How to do it?
Here's an easy way:
Pick the user that you want to eliminate (making sure that the remaining user has administrator privileges) and move all of the data that you want to keep into the Shared folder. Reboot or log out and login to the user you want to keep. Copy all the data from the Shared folder into your account - placing it neatly in folders (Documents, Music, Movies, etc.).
Once the data is moved, log into the account you want to delete just once more to make certain that you've grabbed all the data you want to keep. Log out and log back into your admin account and go to System Preferences>Users & Groups and delete the 'old' user.
That should do it.
Clinton -
Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you
Well then maybe you could take a screenshot because the appearance of such a window is news to me.
Also post your OS X version and what model Mac you have. The more detail, the better. Thanks.
To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse or trackpad. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
If you can't find it on your Desktop look in your Documents or Downloads folder.
When you post your response, click the "camera" icon above the text field:
This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
⌘ Shift 4 and then pressing the space bar captures the frontmost window.
⌘ Shift 3 captures the entire screen.
Drag the screenshot to the Trash after you post your reply. -
I spilled some pop on the back of my iPad. I cleaned it off and everything seems to be going good but when I play music it will either play with no sound or play then continue with no sound. What can I do to fix this (without being costly, it's a iPad 2) this happens with other music apps too. Please I need help!
You can try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
Try again to see if the problem persists. If it doesn't work, there isn;t much anyone here can do for you. It may be a physical problem with your speakers. -
rying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.
Does anyone know how to fix this?What EXACT version of Photoshop CS4 are you running? You should be on Photoshop CS4 v 11.0.2.
Also run Apple's software update to see whether it offers you the latest Epson update:
Printer Driver v9.33
Epson Stylus Pro 3880, Drivers & Downloads - Technical Support - Epson America, Inc.
MOST IMPORTANTLY: have Photoshop re-create its own Preferences:
To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
Important: If you re-create the preferences by manually deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
NEW Video! Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here:
How to Reset Photoshop CS6’s Preferences File | The Complete Picture with Julieanne Kost | Adobe TV
Mac OS
Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files. -
I just bought the new HDMI cord for the IPad, it works good but a small potion of the TOP and the BOTTOM is cut off. It doesn't seem to do it for movies(although I can't really tell. My monitor is a 23 IN' acer s series. I just installed the drivers for my monitor with no change. I think I have a CD somewhere for my monitor maybe it has some kind of program in there that can help me. I can post a picture if I need to. Thanks
No work around that I know of.
Apple Feedback http://www.apple.com/feedback/ -
iO7 in good, but the fine lines of the characters are a nuisance. Is there a way to convince Apple to offer a thicker letter type for aging persons with limited vision?
I turned on Bold Text - the phone will restart itself, that's normal - and it is now MUCH easier on my eyes.
Give it a try. -
Is there any official market or store or anything in Egypt to fix my iphone 4 it jumped from 5th floor and the back hous was crashed and the network sensor was not working good but the phone and the screen and the others things are ok so plz help ???
my iphone is now just coverd with case and the back house is crasedEtisalat, Mobinil and Vodafone provide warranty service in your country. You can also search Google for a 3rd party repair shop near you.
-
Is there a good but free word processor that's Mac compatible?
I don't know where else this question would belong so I just put it here. So, my question is: Is thier a free (but decent) word processor that's Mac compatible that I can download off of the internet? I've already used up my free trial of "Pages" that came with my iMac. I'd also like it to be able to save and print off text documents and also be PC compatible as well.
Hi, you already have Text Edit, I use BEAN//it's pretty good, but you can Google your requirements and there are quite a few "freebies"
http://www.bean-osx.com/
...L -
windows live mail having problem after joining in domain examples incoming is good but sent or outgoing is not there and also send mails are not exporting at the time of live mail exporting time?
This is not usually related to AD issues, but it may be more of a DNS issue. I posted a request in your other thread to post an unedited ipconfig /all of the DC and of the client.
This may help use diagnose this issue and your other thread's printer issues.
Thank you,
Ace Fekay
MVP, MCT, MCSE 2012, MCITP EA & MCTS Windows 2008/R2, Exchange 2013, 2010 EA & 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer
Microsoft MVP - Directory Services
Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php
This posting is provided AS-IS with no warranties or guarantees and confers no rights.
Maybe you are looking for
-
Making attributes of field dynamic in dialog program in layout editor.
hi, to make a field required or possible or hidden, we define its attributes in attributes in layout editor. is it possible to make attributes of fields that we define in layout editor dynamic ? if functional people want to make some field non-mandat
-
A versatile use of "paper"..
This is my first ever 'rant' on a bulletin board.. I quote from Mark Singer's post, near the end of this thread: "I see you got HD Sony working right. You have to be a detective(or follow instructions!)" What the ..? What is the big deal about "follo
-
Async Scenario converted to Sync by PI
Hi everybody, we have a problem with a very simple scenario. The scenario is like following: SOAP --> PI --> FILE. It is an asynchronous scenario. We send SOAP message to the SOAP adapter or directly to the IE. The interesting thing is, the PI system
-
Why is the text on itunes squashed and compacted?
For some reason, all of the text on itunes is very small and overlap each other. Not sure why this happens but it is very annoying and blocks some of the features. The picture is an example of what I mean.
-
I have an 2007 mac book pro that does not have a place for HDMI cable. Can you please tell which converter I need?