Package gov.loc.www.zing.srw.service

Examples of gov.loc.www.zing.srw.service.SRWSampleServiceLocator


public class SRWGuiClient extends JFrame implements HyperlinkListener,
                                               ActionListener {

    public static void main(String[] args) {
        try {
            SRWSampleServiceLocator service=new SRWSampleServiceLocator();
            String urlString=
                             "http://alcme.oclc.org/srw/search/SOAR";
                             //"http://localhost:8082/srw/search/SOAR";
                             //"http://localhost:8082/SRW/search/SOAR";
                             //"http://localhost:8080/SRW/search/SOAR";
                             //"http://srw.cheshire3.org:8080/l5r";
                             //"http://localhost:8082/l5r";
                             //"http://www.rdn.ac.uk:8080/xxdefault";
                             //"http://localhost:8082/xxdefault";
            if(args.length==1)
                urlString=args[0];
            new SRWGuiClient(urlString);

            URL url=new URL(urlString);
            ExplainPort explain=service.getExplainSOAP(url);
            ExplainRequestType explainRequest=new ExplainRequestType();
            explainRequest.setRecordPacking("xml");
            explainRequest.setVersion("1.1");
            ExplainResponseType explainResponse=explain.explainOperation(explainRequest);
            System.out.println("explainResponse="+explainResponse);
           
            SRWPort port=service.getSRW(url);
            ScanRequestType scanRequest=new ScanRequestType();
            scanRequest.setVersion("1.1");
            scanRequest.setScanClause("education");
            ScanResponseType scanResponse=port.scanOperation(scanRequest);
            if(scanResponse!=null) {
View Full Code Here


        return contentStr;
    }

    public String SRWTest(String urlString) {
        try {
            SRWSampleServiceLocator service=new SRWSampleServiceLocator();
            URL url=new URL(urlString);
            ExplainPort explain=service.getExplainSOAP(url);
            ExplainRequestType explainRequest=new ExplainRequestType();
            explainRequest.setRecordPacking("xml");
            explainRequest.setVersion("1.1");
            ExplainResponseType explainResponse=explain.explainOperation(explainRequest);
            System.out.println("explainResponse="+explainResponse);
           
            SRWPort port=service.getSRW(url);
            ScanRequestType scanRequest=new ScanRequestType();
            scanRequest.setVersion("1.1");
            scanRequest.setScanClause("education");
            ScanResponseType scanResponse=port.scanOperation(scanRequest);
            if(scanResponse!=null) {
View Full Code Here

* @author  levan
*/
public class SRWClient {
    public static void main(String[] args) {
        try {
            SRWSampleServiceLocator service=new SRWSampleServiceLocator();
            URL url=new URL(
//                  "http://alcme.oclc.org/srw/search/SOAR");
                  //"http://localhost:8082/srw/search/SOAR");
                  //"http://localhost:8082/SRW/search/SOAR");
//                  "http://localhost:8082/SRW/search/GSAFD");
                  //"http://srw.cheshire3.org:8080/l5r");
                  //"http://localhost:8082/l5r");
                  //"http://www.rdn.ac.uk:8080/xxdefault");
                  //"http://localhost:8082/xxdefault");
                  "http://dev-www.nature.com/opensearch");
//                  "http://levan-rvista.oa.oclc.org:8080/identities/search/");
            ExplainPort explain=service.getExplainSOAP(url);
            ExplainRequestType explainRequest=new ExplainRequestType();
            explainRequest.setRecordPacking("xml");
            explainRequest.setVersion("1.1");
            ExplainResponseType explainResponse=explain.explainOperation(explainRequest);
            System.out.println("explainResponse="+explainResponse);
           
            SRWPort port=service.getSRW(url);
            ScanRequestType scanRequest=new ScanRequestType();
            scanRequest.setVersion("1.1");
            scanRequest.setScanClause("education");
            ScanResponseType scanResponse=port.scanOperation(scanRequest);
            if(scanResponse!=null) {
View Full Code Here

TOP

Related Classes of gov.loc.www.zing.srw.service.SRWSampleServiceLocator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.