Rob
2007-09-05 18:50:04 UTC
I have been trying for quite awhile to get a web service to return data for a
report and I just cannot get it to work.
I have been able to get Microsoft's example (ListChildren) to work and I am
able to access data in an XML file; but I cannot get a custom web service to
work.
In my data source the Type: = XML and my Connection string is:
http://myservername/ADN/Services.asmx
When I access the Services.asmx file I get a list of several web services.
In my dataset, I am trying something of the following:
<Query>
<Method Name="Get_UsersList" Namespace="http://tempuri.org">
<Parameters>
<Parameter Name="username">
<DefaultValue>user</DefaultValue>
</Parameter>
<Parameter Name="password">
<DefaultValue>password</DefaultValue>
</Parameter>
<Parameter Name="account">
<DefaultValue>flashdev</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>
The password, username and account are all correct. I am not sure on the
NAMESPACE (I am just taking a wild guess here).
The data set only returns a STATUS and an XMLNS fields where I expected to
see some user data (from Get_UsersList).
I do get an error message in SSRS:
"System.NullReferenceException: Object reference not set to an instance of
an object. at Service.getLoginInfo(LoginInfo loginInfo, String account)"
it seems to me that the username or password is wrong. Any help is much
appreciated.
Rob
report and I just cannot get it to work.
I have been able to get Microsoft's example (ListChildren) to work and I am
able to access data in an XML file; but I cannot get a custom web service to
work.
In my data source the Type: = XML and my Connection string is:
http://myservername/ADN/Services.asmx
When I access the Services.asmx file I get a list of several web services.
In my dataset, I am trying something of the following:
<Query>
<Method Name="Get_UsersList" Namespace="http://tempuri.org">
<Parameters>
<Parameter Name="username">
<DefaultValue>user</DefaultValue>
</Parameter>
<Parameter Name="password">
<DefaultValue>password</DefaultValue>
</Parameter>
<Parameter Name="account">
<DefaultValue>flashdev</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>
The password, username and account are all correct. I am not sure on the
NAMESPACE (I am just taking a wild guess here).
The data set only returns a STATUS and an XMLNS fields where I expected to
see some user data (from Get_UsersList).
I do get an error message in SSRS:
"System.NullReferenceException: Object reference not set to an instance of
an object. at Service.getLoginInfo(LoginInfo loginInfo, String account)"
it seems to me that the username or password is wrong. Any help is much
appreciated.
Rob