I tried to integrate Quickbooks Desktop with my application in Java.
I have installed the Quickbooks Desktop trial version and Quickbooks Web Connector. I have created a web service for the sample code given in Quickbooks Desktop's development documentation.
My QWC file.
<?xml version="1.0"?>
<QBWCXML>
<AppName>Example Development Service</AppName>
<AppID></AppID>
<AppURL>http://localhost:8080/qbwc/services/QBWebConnectorSvcSoapImpl</AppURL>
<AppDescription>Example Development Service</AppDescription>
<AppSupport>http://locahost:8000/wsdl</AppSupport>
<UserName>loyola.a</UserName>
<OwnerID>{57571caa-e934-4f14-b3bf-dfdbacdd273a}</OwnerID>
<FileID>{dc25fda6-bce2-493b-9e04-a1560bde96e4}</FileID>
<QBType>QBFS</QBType>
<Style>DocWrapped</Style>
<Scheduler>
<RunEveryNSeconds>600</RunEveryNSeconds>
</Scheduler>
<IsReadOnly>false</IsReadOnly>
</QBWCXML>
While Web connector calling authenticate method, I am getting the below error in QWClog file even my username and password are correct,
QBWebConnector.SOAPWebService.do_authenticate() : QBWC1012: Authentication failed due to following error message.
Object reference not set to an instance of an object
Please help me for further steps to do.
Related
I have installed google datastore emulator in my local machine along with it written a sample spring boot application .
I can't connection datastore emulator
This is my application.properties config
spring.cloud.gcp.datastore.project-id=project-id
spring.cloud.gcp.datastore.emulator.enabled=true
spring.cloud.gcp.datastore.emulator-host=http://localhost:8081
by this config , I will throw Exception
The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
When using the Datastore emulator, you don't need credentials for running the application, so it might be that the library doesn't know that.
However, if you want to try it providing credentials, once you have a service account created, then run in the shell the following:
export GOOGLE_APPLICATION_CREDENTIALS="KEY_PATH"
KEY_PATH you have to replace it with the path of the JSON file that contains your service account key. You can find more information here.
Trying to understand how Google Cloud App Engine works, I am trying the tutorial mentioned in:
https://medium.com/google-cloud/getting-started-with-google-app-engine-and-spring-boot-in-5-steps-2d0f8165c89
I can get the response "Hello Spring Boot!" on my local system using browser at "http://localhost:8080" but when I deploy the code to Google App Engine, I access .appspot.com then i fail to get the message "Hello Spring Boot!" but get 404 Error not found. I suspect this is an access/permissions issue but have not been able to solve it
Things I have checked:
1) My GCP has billing enabled for this project
2) I can see that there is one instance for in App Engine dashboard
3) My Google application credentials in bash ENV variable points to the API key created for this #appspot.gserivceaccount.com
4) I have used GCP to deploy an earlier project for maven spring boot, this is a new project to test APP engine.
I am currently working in google analytics. I was able to get it working in eclipse, using tomcat server. while running the application to get the pageviews of my site i am been asked for login and access token permission in my system's default browser. after i provide these details i am getting the analytics displayed via google Oauth2 API's.
Now my question is i want to get these data in a public server which doesn't allow browser UI's. so could any body provide some answers for getting the access token for analytics using plain java like URL connection object.
Possible Solution
1 Possible solution got:
Used service login email and key file. which is used to get the auth credentials. This can be generated in google api console where we will be adding the google api's to be used in our projects.
I am trying to write a small Java client for consuming services provided by Microsoft Exchange server through Exchange Web Services (EWS). For experimenting I set up Exchange Online account from here.
Then I configured my Outlook client to use the newly created mail on exchange and outlook's Test Email Auto-Configuration windows I tried to retrieve the link for Services.wsdl for that client:
Then I tried hitting Availability Services url, entered the username and password and it opened following page:
I then tried to hit the url specified on that page for service.wsdl, but it gave Page Not Found error. SO
Q1 where will I get WSDL file, and
Q2 which link should I hit while developing Java client. In my office environment I get WSDL file over configured Exchange server which directly opens WSDL file but am guessing what should be in case of exchange online.
Q1 - The WSDL file can be downloaded from the Exchange server endpoint that you wish to hit. I don't have credentials to try this, but this should work:
https://outlook.office365.com/EWS/Services.wsdl
It's usually in the EWS directory and named Services.wsdl. I just looked at your other screenshots above and inferred the same format.
Q2 - For Office 365 (which you are testing with), Microsoft recommends this approach for manually finding the URL to hit for API calls. (Alternative much more detailed desciption here: How to get services.wsdl for Office 365?)
However building the stubs yourself and finding URLs to invoke is a lot of work that you don't have to do if you use a pre-built Java library such as Microsoft's own EWS Java API or this 3rd party library. They both do basically the same thing, which is to expose Java classes in a Jar that allow you to make calls to any Exchange server. They will also take care of automatically discovering the URL to use, if you wish (it's a feature called Autodiscover).
I'm following this netbeans tutorial to create a facebook app on Netbeans 7.1. http://documents.cofares.net/netbeans.org/kb/docs/websvc/facebook.html
In Step 12
When i am asked to select the REST resources "From IDE registered" gives me the sample ones such as Twitter, Amazon, Google . but NOT the "facebook",
So I tried to add facebook as a web service in Services window.
When I'm adding web service Netbeans asks me a local file Or URL.
I tried to give this URL for adding facebook as web service https://graph.facebook.com
but it says:
"can't determine whether service is WSDL or WADL"
What is the correct URL that I can use here?
http://documents.cofares.net/netbeans.org/kb/docs/websvc/facebook.html
NetBeans IDE Facebook support does not currently include support for OAuth, Extended Permissions, or the Graph API. Work on this is in progress.