Trying to create Web Service client in Eclipse - eclipse

I have followed the small tutorial for creating a web service client in eclipse:
http://px.pats.no/px/Eclipse_tutorial.html
However, I relaized that I do not have the following classes which I believe is used to access the web services. I am getting an error message.
import org.csapi.www.schema.parlayx.common.v2_1.PolicyException;
import org.csapi.www.schema.parlayx.terminal_location.v2_2.LocationInfo;
import org.csapi.www.wsdl.parlayx.terminal_location.v3_0.service.TerminalLocation;
import org.csapi.www.wsdl.parlayx.terminal_location.v3_0.service.TerminalLocationServiceLocator;
I would really appreciate any help. Thanks in advance!

You need to add 2 jars of parlays in your application.
You might be having them already if you are tutorial has mentioned it or alternatively you can download it from :
http://www.findjar.com/index.x;jsessionid=96A5E1162D798BCF3CB77305955A359E?query=parlayx
or [http://www.parlayx.com/][2]
[2]: http://www.parlayx.com/
do watch out for versions of jars as package/class names might be different and you will have to change them accordingly

I've found this tutorial useful. It uses Axis for the client.

Related

Import Azure Storage Library to Eclipse, Java

I'm a novice to coding and cloud storage and need some step by step guidance on how to set up my Eclipse so I could start working with Microsoft Azure Cloud storage.
So basically I'm following this tutorial for Azure file storage https://learn.microsoft.com/en-au/azure/storage/files/storage-java-how-to-use-file-storage
But when I tried to import the library to in my Eclipse, I got the error "the import cannot be resolved"
// Include the following imports to use blob APIs.
import com.microsoft.azure.storage.*;
import com.microsoft.azure.storage.file.*;
I guess I am missing some libraries. I previously learnt to adds some external libraries though Jar files, I searched for Jar for Azure cloud, but couldn't find any. This page seems relevant but I don't know how to use it. https://github.com/azure/azure-storage-java
Can someone please shed some light?
Thanks a lot.
I solved it.
For other novice programmer going through the same struggle, here is how I did it
1.Install Azure Toolkit for Eclipse, follow: https://learn.microsoft.com/en-us/java/azure/eclipse/azure-toolkit-for-eclipse-installation
2.Restart Eclipse
3.Rightclick the project you want to use the Azure library, then Properties>>Java Build Path>>Libraries tab>> Add Library>> Select Package for Microsoft Azure Libraries for Java>>Finish

Integrating external service in Lagom

I used following link to integrate Lagom Unmanaged External Service into my project
https://blog.knoldus.com/2017/08/17/integrating-unmanaged-service-in-lagom-with-scala/
I'm struggling with this tutorial for 2 days with no luck and keep getting UnserializableException.
Hope someone could help me with it
I have a lot of trouble using mentioned tutorial to implement external service. finally I found solution for that so I created a simple project that show you how to use external service in Lagom
you can check it out from below link:
https://github.com/navabi/lagom-unmanaged-service-example
Don't hesitate if you have any further questions.

Using MongoDb as persistence for IdentityServer3

I want to use MongoDb to save all the scope/user/client information for IdentityServer3. However, it seems there is little documentation for external storage configurations.
I also tried using this Nuget package: IdentityServer.v3.MongoDb. It seems it is a bit out dated and not work for my project. Anyone have some luck using that package? Or anyone can show some example to implement an external storage for IdentityServer3?
Thanks in advance!

toy web service on Eclipse- trouble with glassfish4 server

I am new to Java EE, and am trying to learn how to create a web service. I followed the instructions given at this link- http://www.eclipse.org/webtools/community/education/web/t320/Implementing_a_Simple_Web_Service.pdf to create a simple Hello World web service. I got into trouble when trying to get Eclipse to start the glassfish4 server. I get the error shown below-
I am not sure what ${sunappserver.rootdirectory} means and how it is defined. Much appreciate anyone who can help me understand this and get it working.
Check your glassfish installation. This file contains lots of configuration details. Your Exception means it is missing! Maybe there is a backup called domain.xml.bak in the same directory.
Mine is in /usr/local/glassfish4_1/glassfish/domains/domain1/config/domain.xml

How do I configure SSRS Web Service to include missing proxy class?

I am new to SQL Server Reporting Services and web services in general. I am trying to follow this tutorial for integrating java with SSRS web services: http://www.craigsprogramming.com/2011/03/how-to-integrate-java-with-microsoft_4178.html.
I have generated the proxy classes from the server's ReportExecution2005 wsdl file, using the wsimport utility. I get most classes such as the ReportExecutionService and the ReportExecutionServiceSoap. However, I seem to be missing the ReportExecutionServiceSoapStub class which is utilized in the tutorial(and among other tutorials/examples). I have the same version of ReportExecutionService.
"import com.microsoft.schemas.sqlserver._2005._06._30.reporting.reportingservices.*;" doesn't contain ReportExecutionServiceSoapStub class
Would anyone have any idea why this is happening? This is very new to me, so any help would be appreciated. Thanks!
So I figured out the Stub class is generated by Apache Axis when the wsdl is converted to the proxy classes by Axis. I generated them with wsimport.