Help
  • Explore Community Expore Community
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Brand Logo
Help
  • Explore Community Explore Community
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • EcoStruxure Asset Advisor
      • Gateways and Energy Servers
      • Metering & Power Quality
      • Protection & Control
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      • Specifiers Club ZA Forum
      • Електропроектанти България
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Energy & Sustainability Services
      • Green Building Scoring and Certification Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Remote Operations Devices Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
    • EcoStruxure IT Help Center
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      EcoStruxure IT
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Energy & Sustainability Services
      • Active Energy Management Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Remote Operations Devices Knowledge Base
      • Success Stories Corner
  • companyImpact

Swagger Username and Password Incorrect

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • Swagger Username and Password Incorrect
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
JeffBowman Schneider Alumni (Retired)
164
sesa180908_brid
Commander sesa180908_brid Commander
34
ardak
ardak Schneider Alumni (Retired)
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
petri_greenwave
Lt. Commander | EcoXpert Master petri_greenwave Lt. Commander | EcoXpert Master
Lt. Commander | EcoXpert Master

Posted: ‎2017-04-08 04:25 AM

0 Likes
6
1230
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-04-08 04:25 AM

Swagger Username and Password Incorrect

Hi All,

I have started looking into the SmartConnector application as one of our major clients would like to pull Values and Trends from their Automation servers and Enterprise servers onto their own Webpage using the EWS RESTful Gateway.

I have setup everything according to the documents however I am getting stuck when trying to use Swagger to do some testing.

When I click on the Swagger link http://127.0.0.1:8083/swagger/docs/v1 as an example on my Endpoint it takes me to the page where I supposedly can do some test queries. However, It asks for a username and password which for the life of me I can't figure out. According to the EWS RESTfull gateway document I am supposed to, using a soapewsrestprovider, use the EWS user on the referenced server.

Now, since there is no specific user for EWS on the automation server/Enterprise server, I would assume using the admin account should grant me access. Unfortunately it keeps saying incorrect username or password.

Which username /password should I be using to authenticate swagger so I can test my SmartConnector Endpoint?

Tags (2)
  • Tags:
  • smartconnector
  • swagger
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-04-10 06:54 AM

0 Likes
2
1120
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-04-10 06:54 AM

Petri,

I had another thought as well.  I noticed that you configured the REST endpoint using the default port of 8083.  Did you happen to delete the other REST endpoint that is added as sample data?  That happens to also use port 8083.  If you didn't delete it, you might be seeing a weird issue where Swagger thinks it's connecting to your REST endpoint for SBO but it's actually not.  You would see that on the endpoint configurations page where only one of the endpoints would be actually running.

See Answer In Context

Reply
Replies 6
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-04-08 10:02 AM

1 Like
0
1120
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-04-08 10:02 AM

What you stated is correct; to connect to SBO, you need to use the SoapEwsRestProvider and valid credentials from the ES or AS you stated.

What value did you enter into the Endpoint Configuration's Http Configuration Server Address field?  It needs to be the address for the EWS endpoint and should look like this:http://localhost:8081/EcoStruxure/DataExchange (change localhost and the port as needed).

Reply
petri_greenwave
Lt. Commander | EcoXpert Master petri_greenwave Lt. Commander | EcoXpert Master
Lt. Commander | EcoXpert Master

Posted: ‎2017-04-08 12:58 PM

0 Likes
4
1120
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-04-08 12:58 PM

Hi Mark,

Thanks for the response.

If I understand correctly, the server address should be the Automation Server or Enterprise Server you are using's IP.

For instance, if I want to pull trend logs or alarm events into a client's webpage , using smartconnect, I would enter the server I am connecting to, or consuming from,'s address in the Server Address field.

So for the 2 examples I tried (first AS, then ES) I had http://>exampleASIP</EcoStruxure/DataExchange and http://>exampleESIP</EcoStruxure/DataExchange as the server addresses. I tried http and https in both cases after I changed the "Enforce Secure Communication" setting to enable as well.

I used the AS, and ES passwords in swagger but it kept returning "The Username or Password were incorrect."

I am sure I'm missing something and would appreciate it if you could tell me what

Reply
JeffBowman
JeffBowman Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2017-04-10 06:50 AM

0 Likes
3
1120
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-04-10 06:50 AM

Hi Petri,

Is your admin user on the default SBO domain? EWS users must be on the default domain of SBO.

You don't need to enforce secure communications for this to work (but of course the added security is nice ).

In any case, if you could provide us with the following information, we could more easily help you debug this issue:

- What version of SBO and SmartConnector are you using?

- In the SmartConnector Logging filters page, could you turn on Ews Consume, and Rest Serve and in the Settings page set the logging level to Debug. Run your test again, and send us the SmartConnector log (c:\ProgramData\SmartConnector\Logs) after you try and authenticate.

- If you could get some Fiddler and/or Wireshark captures of the handshake that could help as well.

Regards,

-Jeff

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-04-10 06:54 AM

0 Likes
2
1121
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-04-10 06:54 AM

Petri,

I had another thought as well.  I noticed that you configured the REST endpoint using the default port of 8083.  Did you happen to delete the other REST endpoint that is added as sample data?  That happens to also use port 8083.  If you didn't delete it, you might be seeing a weird issue where Swagger thinks it's connecting to your REST endpoint for SBO but it's actually not.  You would see that on the endpoint configurations page where only one of the endpoints would be actually running.

Reply
petri_greenwave
Lt. Commander | EcoXpert Master petri_greenwave Lt. Commander | EcoXpert Master
Lt. Commander | EcoXpert Master

Posted: ‎2017-04-11 06:24 AM

0 Likes
1
1120
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-04-11 06:24 AM

Hi Mark,

Thank you, that did the trick. I deleted the original endpoint and it took the password first time.

Now... to resume testing

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-04-11 06:26 AM

0 Likes
0
1120
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-04-11 06:26 AM

Petri,

Glad it's working for you now.  If you have any other questions, don't hesitate to ask.

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

Additional options
You do not have permission to remove this product association.
 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2023 Schneider Electric, Inc