web-services

Invalid Email Address Exception when calling SoftLayer_User_Customer::createObject()

Any helpp would be appreciable. I'm trying to create a user record through the API using SoftLayer_User_Customer::createObject(). I think I am passing the required object properties in a StdClass $object - but it shows an exception that invalid email address.But i put a valid email address.This have been eating my head for two days.Plea...

ASP.NET MVC Use Controller or View outside of the MVC application context

Hello i am creating a small webpage that give our users an interface to search in our database. This website must supply 2 webservice functions, Search(string searchString) and GetAccountInfoByInitials(string initials) I would like to use my controllers to do this, but i can not find out how i can get the html out of a ViewResult. I h...

HttpSession is sometimes "null" in case of JAX-WS webservices

I am working on JAX-WS webservice and sometimes on heavy load i am getting HttpSession "null". This is how I am getting the session: MessageContext mc = wsContext.getMessageContext(); HttpSession session=((HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getSession(); if(session==null) { logger.warn("Session is null"); } ...

Extracting Specific record from webservice XML

How would i go about extracting specific information from the XML returned from a webservice. The webservice is called from an embedded webbrowser in a C# windows form. I was thinking that mabey i could save the displayed data as XML file and read from that though it would need to be automatic and not use the save dialog that webbrowse...

JBoss 5 is giving "null" session

I have a JAX-WS web service and some times [during load] JBoss 5 gives a "null" when I do a get session. Is there any "max session" parameter for Jboss? Thanks| Abhi ...

What is the most suitable .NET Web technology to implement this?

I will be interfacing with a third-party - the exchange of information is done as follows. If my application is the client and the third party is the server, then: Server-to-client: I give them a pre-defined URL and they push data with HTTP POST. The POST parameters contain a variable "xml" with the request in a proprietory XML format...

How can I unit test code that sends a SOAP web-service request?

I want to write a unit test for some code that generates a SOAP message with an attachment and sends it: SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance(); conn = factory.createConnection(); conn.call(message, endpoint); where the factory is a javax.xml.soap.SOAPConnectionFactory I don't care about any response co...

How do I add basic authentication to a Python REST request?

I have the following simple Python code that makes a simple post request to a REST service - params= { "param1" : param1, "param2" : param2, "param3" : param3 } xmlResults = urllib.urlopen(MY_APP_PATH, urllib.urlencode(params)).read() results = MyResponseParser.parse(xmlResults) The problem is that the url used to ...

Posting Large Dataset causes 404 Error from WebService

I've noticed plenty of posts on Http errors related to upload size but none of the solutions seem to work for me. I've got a web service that accepts a dataset over http, and if the data being uploaded is small like just a couple of rows, it works just fine, but when the amount of data is quite a lot (a couple of MB), I get a strange 404...

Custom webservice in Umbraco 4.5 giving odd error

We've created a custom webservice in Umbraco to add (async) files and upload them. After upload the service is called with node and file-information to add a new node to the content tree. At first our main problem was that the service was running outside of the Umbraco context, giving strange errors with get_currentuser. Now, we inher...

Inheritance on method parameters not working

Hello, I have a test web service with following methods & classes, Method public String addPerson(Person p) { if(p instanceof Employee) { return "Employee"; } return "Person"; } Note: Method is annotated with @WebMethod, @WebParam annotations, so is web service with @WebService. Classes Class Person { public String name; } Clas...

What is JAX-MS and where can I learn about it?

Hi, I saw a few job listings asking for expertise on JAX-MS; I have only heard about JAX-WS and JAX-RS so far. Googling for JAX-MS didn't return anything. Is this simply a spelling mistake or there is someone out there that knows what is JAX-MS? One Job asking for JAX-MS ...

Consume a SOAP web service without relying on the app.config

I'm building a .NET component that will call an external web service. I used the "Add Service Reference" dialog to add the web service to my component, which generates the code needed to consume the service and adds the settings to the app.config file. I'm testing the component by adding a reference to its DLL from a Console applicatio...

Serialize SOAP Header as Document Style XML

I have a proxy to a SOAP web service that requires a session object in the SOAP header. The web service is unable to read the session information from the header when it is in the form using a reference: <SessionInfo href="#id1"/> <SessionInfo id="id1"> <UID>1</UID> </SessionInfo> The service I am using requires a RPC style...

Strings with webservices. Making them not nullable?

Hi All, I want to expose a web method over web services like this, public bool AddApple(string colour); The trouble with strings is that you can pass a value of null. Is there a way to say that that string is non nullable? For instance in the entity framework the property has an attribute like this, [EdmScalarPropertyAttribute(Ent...

How to exchange session variables between webmethods in asp.net webservices

I have the following code to store session variable in one webmethod and retrieve it in other webmethod but the value displays null when i try to retrieve it. [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public bool SubmitList1(string businessname ) { Session["Company_Name"] = busi...

Compact framework using web services is too slow!

Hello, I have an application in a PDA with CF3.5. I also wrote a webservice (WCF) in .NET3.5. there are two operations: 1) PDA asks the WS for data. WS returns an sdf (sql server CE file) around 500KB. The communication is fine. Around 5-10 secs. 2) PDA goes around collection data, and sometime returns to a station and connects to the...

Where do I get Two Letter Domain Name?

For my bussiness purpose I want to take a Two letter domain name(eg: xx.yy). Where do I get this? I think GoDaddy.com don't support two letter domain names? my name is not yet registered, thank god Its available!!!! ...

Why does JAX-WS need wrapper classes?

I created a simple webservice, which implements an add operation, and created some client files with wsimport. Now I want to include as less as possible wsdl specific artifacts. Here is an example of how the web service will be called: String serviceNamespace = "http://jws.samples.geronimo.apache.org/"; String serviceName = "CalculatorS...

Where to get/extract relational data on administrative regions of the world?

Hi all, I'm working on a web-application that operates on services. Every service is normally provided over some (possibly several distinct) geographical domain(s) like city, county, region, state, country or worldwide. Typical tasks: users will submit their location as lng,lat and I will need to find what are the services availabl...