Issue with calling two Soap WSDLs on same page in c#.net. Get index of object not found.
I have an issue when calling multiple SOAP WSDLs for Service Manager data in C#.net. I have been able to use most of the WSDLs for service manager for posting an retrieving data fine but I seem to have one issue that I cannot find fix for and I've tried everything. I have a few pages when I have to access multiple WSDls on the page like IncidentManagement and ConfigurationManagement. It seems when I call both of them on a page the second one times out on me. Is there a specific syntax I need to use close out the connection to one WSDL before I call the second or is there a specific way you must make calls when a page interfaces with two WSDLs. Are you not able to connect to one WSDL till the other is closed. For example if I make a call to RetrieveIncidentKeysList of the IncidentManagement WSDL and need to use one of the values in this key list to return a value from say the ConfigurationManagement WSDL when it makes the second connection it times out. This is the error I see returned when I try to call second one via WebMethod. "Object reference not set to an instance of an object"
Any help would be appreciated.
Re: Issue with calling two Soap WSDLs on same page in c#.net. Get index of object not found.
The error you are receiving is related to your C# code, not hpsm at all.
There is no such thing like access one WSDL or connection to one WSDL..... I would like to suggest the reading of HPSM Web Services Best Practices document, it can help you to understand better the concepts and correct nomenclature...
As I said, this is rather a problem with your C# code... before interact with objects make sure they are not null.
When you call each part separeted it works?
If you need further help, the best would be have access to your C# code.
If you feel this was helpful please click the KUDOS! thumb below!