[MOBY-guts] biomoby commit

Dmitry Repchevski drepchevski at dev.open-bio.org
Tue Aug 31 16:15:44 UTC 2010


drepchevski
Tue Aug 31 12:15:44 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/org/inb/biomoby/client
In directory dev.open-bio.org:/tmp/cvs-serv28356/biomoby/client

Modified Files:
	MobyDispatch.java 
Log Message:

moby-live/Java/src/main/org/inb/biomoby/client MobyDispatch.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/inb/biomoby/client/MobyDispatch.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/inb/biomoby/client/MobyDispatch.java	2009/09/09 19:47:48	1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/inb/biomoby/client/MobyDispatch.java	2010/08/31 16:15:44	1.2
@@ -76,7 +76,7 @@
     
     private final String user;
     private final String password;
-    
+
     public MobyDispatch(org.inb.biomoby.shared.registry.Service mobyService)
     {
         this(mobyService, null, null);
@@ -97,7 +97,7 @@
     }
 
     /**
-     * Method to synchronously invoke BioMoby service (provided in constructor)
+     * Method to synchronously invoke BioMoby service (provided in the constructor)
      *
      * @param message - message to be sent.
      * @return message sent by the service.
@@ -153,8 +153,7 @@
         
         if (user != null)
         {
-            //dispatch.getRequestContext().put(Context.SECURITY_AUTHENTICATION, "none");
-
+//            dispatch.getRequestContext().put(Context.SECURITY_AUTHENTICATION, "none");
 //            dispatch.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "pepino");
 //            dispatch.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "password");
         }
@@ -219,7 +218,7 @@
 
         dispatch.getRequestContext().put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE); //use SOAPAction!
         dispatch.getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY, service.getServiceName().getNamespaceURI() + '#' + mobyService.getName() + "_submit");
-        
+
         SOAPMessage responseMessage = dispatch.invoke(request);
 
         JAXBContext ctx = MobyMessageContext.getContext();
@@ -265,9 +264,8 @@
         sElement.setEncodingStyle("http://schemas.xmlsoap.org/soap/encoding/");
 
         SOAPElement aElement = sElement.addChildElement("arg0", "nsl");
-        
-        aElement.addNamespaceDeclaration("soapenc", "http://schemas.xmlsoap.org/soap/encoding/");
-        aElement.setAttribute("xsi:type", "soapenc:string");
+
+        aElement.setAttribute("xsi:type", "xsd:string");
 
         if (object != null)
         {




More information about the MOBY-guts mailing list