Jump to content
Software FX Community

richbon

Members
  • Posts

    3
  • Joined

  • Last visited

richbon's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I asked our developer, and he said it's using Basic authentication. Of note: in IE, I can use DOMAIN\username or just username and both versions work. Neither version works with invoke-webservice. There are no strange characters in the username or password - just letters (upper and lower case) and numbers. Also, I don't know if it matters, but notice that the webservice is using https. -Rich
  2. Thanks for the reply, but it doesn't seem to be working for me for some reason. I can create the credential fine, but then it still gives me this error: Invoke-WebService : The remote server returned an error: (401) Unauthorized. At line:1 char:18 + invoke-webservice <<<< -credential $cred -WSDL https://example.com/_vti_bin/QueryData.asmx?wsdl Now, I know definitely the account I'm using works, because I can open the link in IE and get the whole wsdl definitions and operations list. Any other thoughts? This would be perfect if we could get it working. -Rich
  3. I have to access a webservice that requires a user to authenticate with a username and password. How do I do that? Simply using this: invoke-webservice -WSDL https://example.com/_vti_bin/QueryData.asmx?wsdl returns: Invoke-WebService : The remote server returned an error: (401) Unauthorized. I can't be the first person to need to do this, but I've spent the afternoon searching this forum and the web and I can't find anything that seems to apply to my situation. I couldn't find anything in PowerGadgets Creator, either. Can anyone point me in the right direction? Thanks! -Rich
×
×
  • Create New...