WebMethods FAQ
Webmethods integration.
Webmethods tools examples FAQ books
WebMethods book code samples webmethods implementation
Webmethods hub and spoke architecture
webmethods Integration server
webmethods tools services java service
flow service.
Making the simple complicated is commonplace;
making the complicated simple, awesomely simple, that's creativity.
(Charles Mingus)
|
Submit a question to our WebMethods FAQ.

|
|
|
if you have a question on WM development, which you are can not find answer on, feel free to ask. Probably whe already found a way to handle it that problem.
|
|
How to set default values to the record list or to string list |
|
You can not set different values to the list in WM developer. But you can create pipeline variable, set value to it, and map it to to the list variable. Doubleclick created map and set list item number for it.
|
| Answered by
Max Chernyhsov
on 06/22/2001
|
|
|
How to perform check for empty value and null value of variable in the same branch operation |
|
WM supports regular experssions, so you can check are there any notempty value in this field by using
/\S+\
expression.
|
| Answered by
Susan Orth
on 06/22/2001
|
|
|
getCurrentPort
method of the
ServerAPI
class returned -1 on second invocation, when service is invoked by http request. |
|
|
The problem you have described is a known bug. Please contact WebMethods support to update patch for it. Problem exist in WM Server 3.51 and 3.6 servers, patches are available for both.
|
| Answered by
Michael J. O'Brien
on 06/22/2001
|
|
|
How to handle SQL exception in WM |
|
As soon as your SQL statement is invalid, builtin
execSQL
service will through an exception and erase the pipeline, and you wont be able to get any information, why this exception happened. To avoid this write small java wraper service and handle this exception as regular java exception. You can populate some variable on the pipeline as well to handle this situation in the parent service. Take a look at the
WebMethods ToolSet
for details. |
| Answered by
Max Chernyhsov
on 06/22/2001
|
|
|
How to handle COM exceptions in WM |
|
If you are using
Win32
package to call remote methods on the COM objects, and COM objects through an exception it will erase your pipeline (if not wrapped into sequence) and you wont be able to get any information why it crashes (when running in developer in trace mode you will get an message box at least). To avoid it, write small java wraper service and handle this exception as regular java exception. You can populate some variable on the pipeline as well to handle this situation in the parent service. Take a look at the
WebMethods ToolSet
for details. |
| Answered by
Max Chernyhsov
on 06/22/2001
|
|
|
How do I open file and loop over its lines?
I can open a file using
pub.file:getFile,
cut every line using
pub.string:tokenize,
but how do I get the lines?
|
|
After you tokenize your file string to the list of records,
you have to loop through the list, by setting in-array to valueList returned by the tokenize.
inside the loop you will get your records as regular strings not as list.
See this
example package for details
.
For more advanced file-parsing you can use
com.softrus.file.flatFileToRecordList
service
that allow you to parse delimited files like .csf into recordlists. This service can be found in
our
WebMethods ToolSet
|
| Answered by
Max Chernyhsov
on 06/22/2001
|
|
|
How to Configure ftp delivery on Webmethods
|
|
Webmethods recomend to use "guaranteed delivery" GD for XML interexchange
which is prefered method, similar to RPC, but require Webmethods servers on the both ends.
GD is based on http/https protocol and allow you to configure the certificates.
Ftp support in Webmethods is much simplier and did not provide you with any notification on success or failure of delivery.
You will need to implement this by your self.
Simple ftp delivery service can be implemented by using
WmPublic.pub.client.ftp
package and it will look like this:
Download this
example
|
| Answered by
Max Chernyhsov
on 03/12/2002
|
|
|
How to implement HTTPS transfer using webmethods?
|
|
First you need to obtain two client certificates from authorized organization,
or generate ones using
Open SSL
toolkit.
Store these certificates on both ends.
Then login to the WM administration website. and in Remote configuration configure HTTPS
listeners and Remote Hosts. If you are submitting document from site a to site b,
you will need to create listener on the site b and remote host on the site a.
in the remote host configuration you will need select HTTPS and provide path to the client certificate file.
You can test connection as well from the web interface. When you sure that coonnection is valid.
you can start your GD testing. Guaranteed delivery example will be posted shortly.
Overall GD just passes your current pipeline to the remote host and execute remote service,
then you will get resulting pipeline back to handle error or success situation.
|
| Answered by
Max Chernyhsov
on 03/12/2002
|
|
|
How to insert NULL value to the database. WM translate it to the default values like empty string or 0 for the numeric variables?
|
|
Most Probably this is a JDBC driver issue. I just tested SQL Server with
Weblogic JDBC driver and it works fine NULL's are inserted as NULL's.
Another thing to consider is to check if the Variable actualy exist on the pipeline.
before insertion. If variable exist it is treated as empty and not as NULL,
when you load record from database to the WM all null values are invisible i.e not exist on the pipeline.
The conversion to and from XML could cause this issue as well. In most cases WM
treat
<SOME_TAG></SOME_TAG>
and
<SOME_TAG/>
differently.
|
| Answered by
Max Chernyhsov
on 03/12/2002
|
|
|