get { return descriptionImporter.CodeGenerationOptions; }
}
- internal ICodeGenerator CodeGenerator {
+ internal CodeDomProvider CodeGenerator {
get { return descriptionImporter.CodeGenerator; }
}
{
operationBinding = oper;
operation = FindPortOperation ();
- if (operation == null) throw new Exception ("Operation " + operationBinding.Name + " not found in portType " + PortType.Name);
+ if (operation == null)
+ throw new Exception ("Operation " + operationBinding.Name + " not found in portType " + PortType.Name);
+
+ inputMessage = null;
+ outputMessage = null;
foreach (OperationMessage omsg in operation.Messages)
{
foreach (XmlSchemaObject ob in sc.Includes)
{
XmlSchemaImport import = ob as XmlSchemaImport;
- if (import.Namespace == SoapProtocolReflector.EncodingNamespace) return true;
+ if (import != null && import.Namespace == SoapProtocolReflector.EncodingNamespace) return true;
}
return false;
}