Adobe 38000382 JRun Guide - Page 90

Using WSDL2Java, jrun_root, JRun Programmer's, Guide, Programmer's Guide

Page 90 highlights

You can also use the following syntax from the jrun_root/bin directory: %> java2wsdl [options] For information about the Java2WSDL command-line options, see JRun Programmer's Guide. Using WSDL2Java The WSDL2Java tool generates web service proxy and skeleton code based on information in a web service WSDL document. WSDL2Java generates proxies from WSDL documents that specify RPC encoded, document literal, and document encoded SOAP encoding styles. WSDL2Java is part of the org.apache.axis.wsdl package. The Java2WSDL tool uses the following syntax: The WSDL2Java tool uses the following syntax: %> java [-classpath classpath] org.apache.axis.wsdl.WSDL2Java [options] You must include the following files in your classpath: • jrun_root/lib/jrun.jar • jrun_root/lib/webservices.jar You can also use the following syntax from the jrun_root/bin directory: %> wsdl2java [options] The WSDL2Java tool includes username and password options. You can use these when the WSDL file is protected by Basic authentication using the web server and you try to access the URL in a web browser. For example: wsdl2java -U nickd -P password http://host/protected/file/here.wsdl For more information about the WSDL2Java command-line options, see JRun Programmer's Guide. 76 Chapter 7 JRun APIs

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116

76
Chapter 7
JRun APIs
You can also use the following syntax from the
jrun_root
/bin directory:
%> java2wsdl [options]
For information about the Java2WSDL command-line options, see
JRun Programmer’s
Guide
.
Using WSDL2Java
The WSDL2Java tool generates web service proxy and skeleton code based on
information in a web service WSDL document. WSDL2Java generates proxies from
WSDL documents that specify RPC encoded, document literal, and document encoded
SOAP encoding styles.
WSDL2Java is part of the org.apache.axis.wsdl package. The Java2WSDL tool uses the
following syntax:
The WSDL2Java tool uses the following syntax:
%> java [-classpath
classpath
] org.apache.axis.wsdl.WSDL2Java [options]
You must include the following files in your classpath:
jrun_root
/lib/jrun.jar
jrun_root
/lib/webservices.jar
You can also use the following syntax from the
jrun_root
/bin directory:
%> wsdl2java [options]
The WSDL2Java tool includes username and password options. You can use these when
the WSDL file is protected by Basic authentication using the web server and you try to
access the URL in a web browser. For example:
wsdl2java -U nickd -P password http://host/protected/file/here.wsdl
For more information about the WSDL2Java command-line options, see
JRun
Programmer’s Guide
.