Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.wsrp.util
Class WsdlUtils

    java.lang.Object
      com.bea.wsrp.util.WsdlUtils

public abstract class WsdlUtils
extends Object

WSDL Utils.

Nested Class Summary
`static class` | `WsdlUtils.WsrpPortStruct` Specifies WSRP ports offered by a producer.

Method Summary
`static boolean` | `acceptsMime(String producerWsdlUrl)` Verifies whether the Producer accepts MIME requests.
`static ServiceDescription` | `getServiceDescription(String serviceDescriptionPortUrl, String registrationHandle, byte[] registrationState)` Returns the service description given the WSDL URL.
`static ServiceDescription` | `getServiceDescriptionByWsdl(String producerWsdlUrl)` Returns the service description given the WSDL URL.
`static ServiceDescription` | `getServiceDescriptionByWsdl(String producerWsdlUrl, String registrationHandle, byte[] registrationState)` Returns the service description given the WSDL URL.
`static DefinitionsDocument` | `getWsdlDocument(String wsdlUrl)` Returns a WSDL for the WSDL URL.
`static WsdlUtils.WsrpPortStruct` | `getWsrpPortUrls(DefinitionsDocument wsdl)` Returns WSDL Ports.
`static boolean` | `validateWsdl(DefinitionsDocument wsdl)` Returns `true` if the given WSDL has mandatory WSRP ports.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### acceptsMime

    public static boolean acceptsMime(String producerWsdlUrl)
                               throws XmlException,
                                      IOException

  Verifies whether the Producer accepts MIME requests.

  Parameters:
    `producerWsdlUrl` -
  Returns:
  Throws:
    `XmlException`
    `IOException`

### getServiceDescription

    public static ServiceDescription getServiceDescription(String serviceDescriptionPortUrl,
                                                           String registrationHandle,
                                                           byte[] registrationState)
                                                    throws IOException

  Returns the service description given the WSDL URL.

  Parameters:
    `serviceDescriptionPortUrl` - service description port URL
    `registrationHandle` - registration handle
    `registrationState` - registration state
  Throws:
    `UnknownHostException` - thrown if host in the given WSDL URL is not known
    `FileNotFoundException` - thrown if there is at the given WSDL URL is not found
    `IOException`

### getServiceDescriptionByWsdl

    public static ServiceDescription getServiceDescriptionByWsdl(String producerWsdlUrl)
                                                          throws XmlException,
                                                                 IOException

  Returns the service description given the WSDL URL.

  Parameters:
    `producerWsdlUrl` - WSDL URL
  Throws:
    `IllegalArgumentException` - if the WSDL is not valid per the validateWsdl method
    `UnknownHostException` - thrown if host in the given WSDL URL is not known
    `FileNotFoundException` - thrown if there is at the given WSDL URL is not found
    `UnsupportedContentTypeException` - thrown if the response content type at the given URL is not supported
    `XmlException` - throws if there are XML parse errrors
    `IOException`

### getServiceDescriptionByWsdl

    public static ServiceDescription getServiceDescriptionByWsdl(String producerWsdlUrl,
                                                                 String registrationHandle,
                                                                 byte[] registrationState)
                                                          throws XmlException,
                                                                 IOException

  Returns the service description given the WSDL URL.

  Parameters:
    `producerWsdlUrl` - WSDL URL
    `registrationHandle` - registration handle
    `registrationState` - registration state
  Throws:
    `IllegalArgumentException` - if the WSDL is not valid per the validateWsdl method
    `UnknownHostException` - thrown if host in the given WSDL URL is not known
    `FileNotFoundException` - thrown if there is at the given WSDL URL is not found
    `UnsupportedContentTypeException` - thrown if the response content type at the given URL is not supported
    `XmlException` - throws if there are XML parse errrors
    `IOException`

### getWsdlDocument

    public static DefinitionsDocument getWsdlDocument(String wsdlUrl)
                                               throws XmlException,
                                                      IOException

  Returns a WSDL for the WSDL URL.

  Parameters:
    `wsdlUrl` -
  Returns:
  Throws:
    `UnknownHostException` - thrown if host in the given WSDL URL is not known
    `FileNotFoundException` - thrown if there is at the given WSDL URL is not found
    `UnsupportedContentTypeException` - thrown if the response content type at the given URL is not supported
    `IllegalArgumentException` - thrown if the docuemnt at the given URL is not a WSDL
    `XmlException` - throws if there are XML parse errrors
    `IOException`

### getWsrpPortUrls

    public static WsdlUtils.WsrpPortStruct getWsrpPortUrls(DefinitionsDocument wsdl)

  Returns WSDL Ports.

  Parameters:
    `wsdl` -
  Returns:

### validateWsdl

    public static boolean validateWsdl(DefinitionsDocument wsdl)

  Returns `true` if the given WSDL has mandatory WSRP ports. Returns false otherwise.

  Parameters:
    `wsdl` -
  Returns:
    boolean

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved